Class: Reform::Representer
- Inherits:
-
Representable::Decorator
- Object
- Representable::Decorator
- Reform::Representer
- Includes:
- Representable::Hash
- Defined in:
- lib/reform/form.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#fields ⇒ Object
Returns hash of all property names.
Class Method Details
.properties(names, *args) ⇒ Object
121 122 123 124 125 |
# File 'lib/reform/form.rb', line 121 def self.properties(names, *args) names.each do |name| property(name, *args) end end |
Instance Method Details
#fields ⇒ Object
Returns hash of all property names.
128 129 130 |
# File 'lib/reform/form.rb', line 128 def fields representable_attrs.collect { |cfg| cfg.name } end |