Class: PerUserStatus::Hooks::FormExtender
- Inherits:
-
Object
- Object
- PerUserStatus::Hooks::FormExtender
- Defined in:
- lib/per_user_status/hooks.rb
Instance Attribute Summary collapse
-
#f ⇒ Object
readonly
Returns the value of attribute f.
-
#view_context ⇒ Object
readonly
Returns the value of attribute view_context.
Instance Method Summary collapse
-
#initialize(view_context, f) ⇒ FormExtender
constructor
A new instance of FormExtender.
- #to_html ⇒ Object
Constructor Details
#initialize(view_context, f) ⇒ FormExtender
Returns a new instance of FormExtender.
35 36 37 38 |
# File 'lib/per_user_status/hooks.rb', line 35 def initialize(view_context, f) @view_context = view_context @f = f end |
Instance Attribute Details
#f ⇒ Object (readonly)
Returns the value of attribute f.
33 34 35 |
# File 'lib/per_user_status/hooks.rb', line 33 def f @f end |
#view_context ⇒ Object (readonly)
Returns the value of attribute view_context.
33 34 35 |
# File 'lib/per_user_status/hooks.rb', line 33 def view_context @view_context end |
Instance Method Details
#to_html ⇒ Object
40 41 42 43 44 |
# File 'lib/per_user_status/hooks.rb', line 40 def to_html content_tag(:p) do input + hint end end |