Class: Demiurge::ActionItemInternal::BlockRunner Private
- Inherits:
-
Object
- Object
- Demiurge::ActionItemInternal::BlockRunner
- Defined in:
- lib/demiurge/action_item.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
BlockRunners set up the environment for an action's block of code. They provide available information and available actions. The BlockRunner parent class is mostly to provide a root location to begin looking for BlockRunners.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#engine ⇒ Demiurge::Engine
readonly
private
The engine the BlockRunner is attached to.
-
#item ⇒ Demiurge::ActionItem
readonly
private
The item the BlockRunner is attached to.
Instance Method Summary collapse
-
#initialize(item, unused_kw_arg: nil) ⇒ BlockRunner
constructor
private
Constructor: set the item Ruby bug: with no unused kw args, passing this an empty hash of kw args will give "ArgumentError: wrong number of arguments".
Constructor Details
#initialize(item, unused_kw_arg: nil) ⇒ BlockRunner
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Constructor: set the item Ruby bug: with no unused kw args, passing this an empty hash of kw args will give "ArgumentError: wrong number of arguments"
232 233 234 235 |
# File 'lib/demiurge/action_item.rb', line 232 def initialize(item, unused_kw_arg:nil) @item = item @engine = item.engine end |
Instance Attribute Details
#engine ⇒ Demiurge::Engine (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The engine the BlockRunner is attached to
226 227 228 |
# File 'lib/demiurge/action_item.rb', line 226 def engine @engine end |
#item ⇒ Demiurge::ActionItem (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The item the BlockRunner is attached to
223 224 225 |
# File 'lib/demiurge/action_item.rb', line 223 def item @item end |