Module: Goaltender::ClassMethods
- Defined in:
- lib/goaltender.rb
Instance Method Summary collapse
Instance Method Details
#input(name, type = nil, options = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/goaltender.rb', line 13 def input(name, type = nil, = {}) @@input_definitions ||= {} array = @@input_definitions[self.name].present? ? @@input_definitions[self.name] : [] array << [name, type, ] @@input_definitions[self.name] = array end |
#input_definitions ⇒ Object
20 21 22 |
# File 'lib/goaltender.rb', line 20 def input_definitions @@input_definitions end |