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)


17
18
19
# File 'lib/formular/element/modules/hint.rb', line 17

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

#hint_textObject



13
14
15
# File 'lib/formular/element/modules/hint.rb', line 13

def hint_text
  options[:hint] if has_hint?
end