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