Class: TableOfTruth::Inputs
- Inherits:
-
Object
- Object
- TableOfTruth::Inputs
- Defined in:
- lib/table_of_truth/inputs.rb
Instance Method Summary collapse
-
#initialize(inputs) ⇒ Inputs
constructor
A new instance of Inputs.
Constructor Details
#initialize(inputs) ⇒ Inputs
Returns a new instance of Inputs.
4 5 6 7 |
# File 'lib/table_of_truth/inputs.rb', line 4 def initialize(inputs) @inputs = inputs @inputs.each { |key, value| define_singleton_method(key) { value } } end |