Class: Reform::Representer

Inherits:
Representable::Decorator
  • Object
show all
Includes:
Representable::Hash
Defined in:
lib/reform/form.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#fieldsObject

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