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
19 20 21 |
# File 'lib/formular/element/modules/hint.rb', line 19 def has_hint? [:hint].is_a?(String) end |
#hint_text ⇒ Object
15 16 17 |
# File 'lib/formular/element/modules/hint.rb', line 15 def hint_text html_escape([:hint]) if has_hint? end |