Class: PerUserStatus::Hooks::FormExtender

Inherits:
Object
  • Object
show all
Defined in:
lib/per_user_status/hooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fObject (readonly)

Returns the value of attribute f.



33
34
35
# File 'lib/per_user_status/hooks.rb', line 33

def f
  @f
end

#view_contextObject (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_htmlObject



40
41
42
43
44
# File 'lib/per_user_status/hooks.rb', line 40

def to_html
  (:p) do
    input + hint
  end
end