Module: Card::Set::Abstract::Machine::MachineClassMethods

Defined in:
card/tmpsets/set/mod016-card-mod-machines/abstract/machine.rb,
card/tmpsets/set/mod015-card-mod-machines/abstract/machine.rb

Overview

all cards that are linked to that card via the +machine input pointer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#output_configObject

Returns the value of attribute output_config.



43
44
45
# File 'card/tmpsets/set/mod016-card-mod-machines/abstract/machine.rb', line 43

def output_config
  @output_config
end

Instance Method Details

#collect_input_cards(&block) ⇒ Object



45
46
47
# File 'card/tmpsets/set/mod016-card-mod-machines/abstract/machine.rb', line 45

def collect_input_cards &block
  define_method :engine_input, &block
end

#machine_engine(&block) ⇒ Object



53
54
55
# File 'card/tmpsets/set/mod016-card-mod-machines/abstract/machine.rb', line 53

def machine_engine &block
  define_method :engine, &block
end

#prepare_machine_input(&block) ⇒ Object



49
50
51
# File 'card/tmpsets/set/mod016-card-mod-machines/abstract/machine.rb', line 49

def prepare_machine_input &block
  define_method :before_engine, &block
end

#store_machine_output(args = {}, &block) ⇒ Object



57
58
59
60
61
# File 'card/tmpsets/set/mod016-card-mod-machines/abstract/machine.rb', line 57

def store_machine_output args={}, &block
  output_config.merge!(args)
  return unless block_given?
  define_method :after_engine, &block
end