Method: Forma::TableField#initialize

Defined in:
lib/forma/field.rb

#initialize(h = {}) ⇒ TableField

Returns a new instance of TableField.



506
507
508
509
510
511
512
# File 'lib/forma/field.rb', line 506

def initialize(h={})
  h = h.symbolize_keys
  h[:label] = false
  h[:force_nonempty] = true
  @table = Forma::Table.new(h[:table] || {})
  super(h)
end