Class: MxitRails::Descriptor
- Inherits:
-
Object
- Object
- MxitRails::Descriptor
- Defined in:
- lib/mxit_rails/descriptor.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#has_table ⇒ Object
Returns the value of attribute has_table.
-
#input ⇒ Object
Returns the value of attribute input.
-
#input_label ⇒ Object
Returns the value of attribute input_label.
-
#multi_select ⇒ Object
Returns the value of attribute multi_select.
-
#multi_select_next ⇒ Object
Returns the value of attribute multi_select_next.
-
#name ⇒ Object
Returns the value of attribute name.
-
#numbered_list ⇒ Object
Returns the value of attribute numbered_list.
-
#parent_descriptor ⇒ Object
Returns the value of attribute parent_descriptor.
-
#proceed ⇒ Object
Returns the value of attribute proceed.
-
#select ⇒ Object
Returns the value of attribute select.
-
#select_label ⇒ Object
Returns the value of attribute select_label.
-
#select_options ⇒ Object
Returns the value of attribute select_options.
-
#selected ⇒ Object
Returns the value of attribute selected.
-
#type ⇒ Object
Returns the value of attribute type.
-
#validated ⇒ Object
Returns the value of attribute validated.
-
#validations_failed ⇒ Object
Returns the value of attribute validations_failed.
Instance Method Summary collapse
- #form? ⇒ Boolean
-
#initialize(name, action, parent = nil) ⇒ Descriptor
constructor
A new instance of Descriptor.
Constructor Details
#initialize(name, action, parent = nil) ⇒ Descriptor
Returns a new instance of Descriptor.
27 28 29 30 31 32 33 |
# File 'lib/mxit_rails/descriptor.rb', line 27 def initialize name, action, parent=nil @parent_descriptor = parent @name = name.to_sym @action = action.to_sym @validations = [] @steps = [] end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
6 7 8 |
# File 'lib/mxit_rails/descriptor.rb', line 6 def action @action end |
#has_table ⇒ Object
Returns the value of attribute has_table.
22 23 24 |
# File 'lib/mxit_rails/descriptor.rb', line 22 def has_table @has_table end |
#input ⇒ Object
Returns the value of attribute input.
11 12 13 |
# File 'lib/mxit_rails/descriptor.rb', line 11 def input @input end |
#input_label ⇒ Object
Returns the value of attribute input_label.
12 13 14 |
# File 'lib/mxit_rails/descriptor.rb', line 12 def input_label @input_label end |
#multi_select ⇒ Object
Returns the value of attribute multi_select.
18 19 20 |
# File 'lib/mxit_rails/descriptor.rb', line 18 def multi_select @multi_select end |
#multi_select_next ⇒ Object
Returns the value of attribute multi_select_next.
19 20 21 |
# File 'lib/mxit_rails/descriptor.rb', line 19 def multi_select_next @multi_select_next end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/mxit_rails/descriptor.rb', line 5 def name @name end |
#numbered_list ⇒ Object
Returns the value of attribute numbered_list.
20 21 22 |
# File 'lib/mxit_rails/descriptor.rb', line 20 def numbered_list @numbered_list end |
#parent_descriptor ⇒ Object
Returns the value of attribute parent_descriptor.
3 4 5 |
# File 'lib/mxit_rails/descriptor.rb', line 3 def parent_descriptor @parent_descriptor end |
#proceed ⇒ Object
Returns the value of attribute proceed.
9 10 11 |
# File 'lib/mxit_rails/descriptor.rb', line 9 def proceed @proceed end |
#select ⇒ Object
Returns the value of attribute select.
14 15 16 |
# File 'lib/mxit_rails/descriptor.rb', line 14 def select @select end |
#select_label ⇒ Object
Returns the value of attribute select_label.
15 16 17 |
# File 'lib/mxit_rails/descriptor.rb', line 15 def select_label @select_label end |
#select_options ⇒ Object
Returns the value of attribute select_options.
16 17 18 |
# File 'lib/mxit_rails/descriptor.rb', line 16 def @select_options end |
#selected ⇒ Object
Returns the value of attribute selected.
17 18 19 |
# File 'lib/mxit_rails/descriptor.rb', line 17 def selected @selected end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/mxit_rails/descriptor.rb', line 7 def type @type end |
#validated ⇒ Object
Returns the value of attribute validated.
25 26 27 |
# File 'lib/mxit_rails/descriptor.rb', line 25 def validated @validated end |
#validations_failed ⇒ Object
Returns the value of attribute validations_failed.
24 25 26 |
# File 'lib/mxit_rails/descriptor.rb', line 24 def validations_failed @validations_failed end |
Instance Method Details
#form? ⇒ Boolean
35 36 37 |
# File 'lib/mxit_rails/descriptor.rb', line 35 def form? type == :form end |