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

Returns:

  • (Boolean)


19
20
21
# File 'lib/formular/element/modules/hint.rb', line 19

def has_hint?
  options[:hint].is_a?(String)
end

#hint_textObject



15
16
17
# File 'lib/formular/element/modules/hint.rb', line 15

def hint_text
  html_escape(options[:hint]) if has_hint?
end