Class: CaseForm::Element::Hint
- Defined in:
- lib/case_form/element/hint.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
Attributes inherited from Base
Instance Method Summary collapse
-
#generate ⇒ Object
Generate hint with defined text and HTML options.
-
#initialize(builder, method, options = {}) ⇒ Hint
constructor
Initialize hint’s object.
Methods included from CaseForm::ElementExt::Naming
#object_human_model_name, #sanitized_object_name, #singularize_model_name
Constructor Details
#initialize(builder, method, options = {}) ⇒ Hint
Initialize hint’s object
10 11 12 13 |
# File 'lib/case_form/element/hint.rb', line 10 def initialize(builder, method, ={}) @method = method super(builder, ) end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
6 7 8 |
# File 'lib/case_form/element/hint.rb', line 6 def method @method end |
Instance Method Details
#generate ⇒ Object
Generate hint with defined text and HTML options
17 18 19 |
# File 'lib/case_form/element/hint.rb', line 17 def generate template.content_tag(hint_tag, text, ) end |