Method: Celerity::SelectList#type
- Defined in:
- lib/celerity/elements/select_list.rb
#type ⇒ String
Returns ‘select-multiple’ if the select list has the ‘multiple’ attribute, defined, otherwise ‘select-one’.
112 113 114 115 |
# File 'lib/celerity/elements/select_list.rb', line 112 def type assert_exists 'select-' + (@object.hasAttribute('multiple') ? 'multiple' : 'one') end |