Class: Shoehorn::Components::Form::Label
- Inherits:
-
Shoehorn::Components::Form
- Object
- Base
- Shoehorn::Components::Form
- Shoehorn::Components::Form::Label
- Defined in:
- lib/shoehorn/components/form/label.rb
Instance Attribute Summary
Attributes inherited from Base
#default_options, #options, #output_buffer
Instance Method Summary collapse
-
#initialize(object_name, method, options) ⇒ Label
constructor
A new instance of Label.
Methods inherited from Base
Constructor Details
#initialize(object_name, method, options) ⇒ Label
Returns a new instance of Label.
3 4 5 6 |
# File 'lib/shoehorn/components/form/label.rb', line 3 def initialize(object_name, method, ) super() output_buffer << label(object_name, method, [:label_text], :class => 'control-label') end |