Class: TableOfTruth::Inputs

Inherits:
Object
  • Object
show all
Defined in:
lib/table_of_truth/inputs.rb

Instance Method Summary collapse

Constructor Details

#initialize(inputs) ⇒ Inputs

Returns a new instance of Inputs.

Parameters:

  • inputs (Hash<(String or Symbol)->Boolean)

    ]



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