class Demiurge::ActionItemInternal::BlockRunner

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

Attributes

engine[R]

@return [Demiurge::Engine] The engine the BlockRunner is attached to

item[R]

@return [Demiurge::ActionItem] The item the BlockRunner is attached to

Public Class Methods

new(item, unused_kw_arg:nil) click to toggle source

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”

@param item [Demiurge::ActionItem] The item using the block, and (usually) the item taking action

# File lib/demiurge/action_item.rb, line 232
def initialize(item, unused_kw_arg:nil)
  @item = item
  @engine = item.engine
end