Class: Demiurge::ActionItemInternal::BlockRunner Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.0.1

Direct Known Subclasses

ActionItemBlockRunner, EngineBlockRunner

Instance Attribute Summary collapse

Instance Method Summary collapse

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"

Parameters:

Since:

  • 0.0.1



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

#engineDemiurge::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

Returns:

Since:

  • 0.0.1



226
227
228
# File 'lib/demiurge/action_item.rb', line 226

def engine
  @engine
end

#itemDemiurge::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

Returns:

Since:

  • 0.0.1



223
224
225
# File 'lib/demiurge/action_item.rb', line 223

def item
  @item
end