Class: CaseForm::Element::Button

Inherits:
Base
  • Object
show all
Defined in:
lib/case_form/element/button.rb

Constant Summary

Constants inherited from Base

CaseForm::Element::Base::HTML_OPTIONS

Instance Attribute Summary

Attributes inherited from Base

#builder, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from CaseForm::ElementExt::Naming

#object_human_model_name, #sanitized_object_name, #singularize_model_name

Constructor Details

This class inherits a constructor from CaseForm::Element::Base

Instance Method Details

#generateObject

Generate button with defined text and HTML options



9
10
11
# File 'lib/case_form/element/button.rb', line 9

def generate
  template. wrapper_tag, button, wrapper_options
end