Class: Formatic::Choices
- Inherits:
-
Object
- Object
- Formatic::Choices
- Includes:
- Calls
- Defined in:
- lib/formatic/choices.rb,
lib/formatic/choices/keys.rb,
lib/formatic/choices/options.rb,
lib/formatic/choices/records.rb,
lib/formatic/choices/countries.rb
Overview
Calculates options for e.g. select boxes.
Defined Under Namespace
Classes: Countries, Keys, Options, Records
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
20 21 22 23 24 |
# File 'lib/formatic/choices.rb', line 20 def call result = choices result.prepend [nil, nil] if include_blank result end |