Class: OpenRosa::Fields::Select
- Defined in:
- lib/open_rosa/fields/select.rb
Overview
Multiple select field (checkboxes) Maps to XForms
Instance Attribute Summary collapse
-
#appearance ⇒ Object
readonly
Returns the value of attribute appearance.
-
#choices ⇒ Object
readonly
Returns the value of attribute choices.
Attributes inherited from Base
#default, #hint, #label, #name, #required
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Select
constructor
A new instance of Select.
Constructor Details
#initialize(name, options = {}) ⇒ Select
Returns a new instance of Select.
11 12 13 14 15 16 17 |
# File 'lib/open_rosa/fields/select.rb', line 11 def initialize(name, = {}) super @choices = [:choices] @appearance = [:appearance] validate! end |
Instance Attribute Details
#appearance ⇒ Object (readonly)
Returns the value of attribute appearance.
9 10 11 |
# File 'lib/open_rosa/fields/select.rb', line 9 def appearance @appearance end |
#choices ⇒ Object (readonly)
Returns the value of attribute choices.
9 10 11 |
# File 'lib/open_rosa/fields/select.rb', line 9 def choices @choices end |