Class: Kameleon::DSL::Act::Form
- Inherits:
-
Object
- Object
- Kameleon::DSL::Act::Form
- Defined in:
- lib/kameleon/dsl/act/form.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params) ⇒ Form
constructor
A new instance of Form.
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
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
6 7 8 |
# File 'lib/kameleon/dsl/act/form.rb', line 6 def actions @actions end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/kameleon/dsl/act/form.rb', line 5 def params @params end |