Class: Formular::Element::Select
- Includes:
- Modules::Collection
- Defined in:
- lib/formular/elements.rb
Overview
class Input
Direct Known Subclasses
Instance Method Summary collapse
-
#option_tags ⇒ Object
convert the collection array into option tags also supports option groups when the array is nested example 1: [[1,"True"], [0,"False"]] => example 2: [ ["Genders", [["m", "Male"], ["f", "Female"]]], ["Booleans", [[1,"true"], [0,"false"]]] ] => .
Methods included from Module
Instance Method Details
#option_tags ⇒ Object
convert the collection array into option tags also supports option groups when the array is nested example 1: [[1,"True"], [0,"False"]] =>
example 2: [ ["Genders", [["m", "Male"], ["f", "Female"]]], ["Booleans", [[1,"true"], [0,"false"]]] ] =>
201 202 203 |
# File 'lib/formular/elements.rb', line 201 def ([:collection]) end |