Method: AutomateIt::FieldManager::Struct#setup

Defined in:
lib/automateit/field_manager.rb

#setup(opts = {}) ⇒ Object

Options:

  • :struct – Hash to use as the fields data structure.



50
51
52
53
54
55
56
57
58
# File 'lib/automateit/field_manager.rb', line 50

def setup(opts={})
  super(opts)

  if opts[:struct]
    @struct = opts[:struct]
  else
    @struct ||= {}
  end
end