Class: Kameleon::DSL::Act::Form

Inherits:
Object
  • Object
show all
Defined in:
lib/kameleon/dsl/act/form.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Form

Returns a new instance of Form.



8
9
10
11
12
13
# File 'lib/kameleon/dsl/act/form.rb', line 8

def initialize(params)
  raise "not supported" unless params.kind_of?(Hash)
  @params = params
  @actions = []
  parse_actions
end

Instance Attribute Details

#actionsObject (readonly)

Returns the value of attribute actions.



6
7
8
# File 'lib/kameleon/dsl/act/form.rb', line 6

def actions
  @actions
end

#paramsObject (readonly)

Returns the value of attribute params.



5
6
7
# File 'lib/kameleon/dsl/act/form.rb', line 5

def params
  @params
end