Module: Card::Set::Abstract::Machine::MachineClassMethods
- Defined in:
- tmpsets/set/mod011-machines/abstract/machine.rb
Overview
all cards that are linked to that card via the +machine input pointer.
Instance Attribute Summary collapse
-
#output_config ⇒ Object
Returns the value of attribute output_config.
Instance Method Summary collapse
- #collect_input_cards(&block) ⇒ Object
- #machine_engine(&block) ⇒ Object
- #prepare_machine_input(&block) ⇒ Object
- #store_machine_output(args = {}, &block) ⇒ Object
Instance Attribute Details
#output_config ⇒ Object
Returns the value of attribute output_config.
39 40 41 |
# File 'tmpsets/set/mod011-machines/abstract/machine.rb', line 39 def output_config @output_config end |
Instance Method Details
#collect_input_cards(&block) ⇒ Object
41 42 43 |
# File 'tmpsets/set/mod011-machines/abstract/machine.rb', line 41 def collect_input_cards &block define_method :engine_input, &block end |
#machine_engine(&block) ⇒ Object
49 50 51 |
# File 'tmpsets/set/mod011-machines/abstract/machine.rb', line 49 def machine_engine &block define_method :engine, &block end |
#prepare_machine_input(&block) ⇒ Object
45 46 47 |
# File 'tmpsets/set/mod011-machines/abstract/machine.rb', line 45 def prepare_machine_input &block define_method :before_engine, &block end |
#store_machine_output(args = {}, &block) ⇒ Object
53 54 55 56 57 |
# File 'tmpsets/set/mod011-machines/abstract/machine.rb', line 53 def store_machine_output args={}, &block output_config.merge!(args) return unless block_given? define_method :after_engine, &block end |