Class: Presentation::Form::GroupSet

Inherits:
Array
  • Object
show all
Defined in:
lib/presentation/form.rb

Instance Method Summary collapse

Instance Method Details

#<<(val) ⇒ Object



40
41
42
43
44
45
46
47
# File 'lib/presentation/form.rb', line 40

def <<(val)
  if val.is_a? Hash
    opts = {:name => val.keys.first, :fields => val.values.first}
  else
    opts = {:fields => val}
  end
  super Group.new(opts)
end