Module: Phlexi::Field::Options::Descriptions
- Included in:
- Builder
- Defined in:
- lib/phlexi/field/options/descriptions.rb
Instance Method Summary collapse
Instance Method Details
#description(description = nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/phlexi/field/options/descriptions.rb', line 7 def description(description = nil) if description.nil? [:description] else [:description] = description self end end |
#has_description? ⇒ Boolean
16 17 18 |
# File 'lib/phlexi/field/options/descriptions.rb', line 16 def has_description? description.present? end |