Class: VCFB::Component::Button
- Defined in:
- lib/vcfb/component/button.rb
Instance Method Summary collapse
- #form_element(options = {}, &block) ⇒ Object
-
#initialize(form, text = nil, options = {}) ⇒ Button
constructor
A new instance of Button.
Methods inherited from Base
#collection_check_boxes, #collection_radio_buttons
Constructor Details
#initialize(form, text = nil, options = {}) ⇒ Button
Returns a new instance of Button.
4 5 6 7 8 9 10 |
# File 'lib/vcfb/component/button.rb', line 4 def initialize(form, text = nil, = {}) run_callbacks :initialize do @form = form @text = text @options = defined?(TagOptions::Hash) ? TagOptions::Hash.new() : end end |
Instance Method Details
#form_element(options = {}, &block) ⇒ Object
12 13 14 |
# File 'lib/vcfb/component/button.rb', line 12 def form_element( = {}, &block) (, &block) end |