Module: Formular::Element::Modules::Hint::InstanceMethods
- Defined in:
- lib/formular/element/modules/hint.rb
Overview
options functionality (same as SimpleForm): options == String return the string
Instance Method Summary collapse
Instance Method Details
#has_hint? ⇒ Boolean
17 18 19 |
# File 'lib/formular/element/modules/hint.rb', line 17 def has_hint? [:hint].is_a?(String) end |
#hint_text ⇒ Object
13 14 15 |
# File 'lib/formular/element/modules/hint.rb', line 13 def hint_text [:hint] if has_hint? end |