Class: Shoehorn::Components::Form::Label

Inherits:
Shoehorn::Components::Form show all
Defined in:
lib/shoehorn/components/form/label.rb

Instance Attribute Summary

Attributes inherited from Base

#default_options, #options, #output_buffer

Instance Method Summary collapse

Methods inherited from Base

#to_s

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, options)
  super(options)
  output_buffer << label(object_name, method, options[:label_text], :class => 'control-label')
end