Method: Celerity::SelectList#type

Defined in:
lib/celerity/elements/select_list.rb

#typeString

Returns ‘select-multiple’ if the select list has the ‘multiple’ attribute, defined, otherwise ‘select-one’.

Returns:

  • (String)


112
113
114
115
# File 'lib/celerity/elements/select_list.rb', line 112

def type
  assert_exists
  'select-' + (@object.hasAttribute('multiple') ? 'multiple' : 'one')
end