class Andromeda::Kit::Block
Attributes
block[RW]
Public Class Methods
new(config = {}) { |key, val| ... }
click to toggle source
Calls superclass method
Andromeda::Plan::new
# File lib/andromeda/kit.rb, line 27 def initialize(config = {}) super config raise ArgumentError unless block_given? @block = lambda { |key, val| yield key, val } end
Public Instance Methods
on_enter(key, val)
click to toggle source
Calls superclass method
Andromeda::Plan#on_enter
# File lib/andromeda/kit.rb, line 33 def on_enter(key, val) if @block super key, (instance_exec key, val, &@block) else super key, val end end