Class: CaseForm::Element::Base
- Inherits:
-
Object
- Object
- CaseForm::Element::Base
- Includes:
- CaseForm::ElementExt::Naming
- Defined in:
- lib/case_form/element/base.rb
Constant Summary collapse
- HTML_OPTIONS =
[:id, :class, :style, :readonly, :disabled, :type, :name, :autofocus, :placeholder, :required, :multiple, :checked, :selected, :for, :min, :max, :step, :pattern, :size, :maxlength, :cols, :rows]
Instance Attribute Summary collapse
-
#builder ⇒ Object
Returns the value of attribute builder.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(builder, options = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from CaseForm::ElementExt::Naming
#object_human_model_name, #sanitized_object_name, #singularize_model_name
Constructor Details
#initialize(builder, options = {}) ⇒ Base
Returns a new instance of Base.
21 22 23 24 25 |
# File 'lib/case_form/element/base.rb', line 21 def initialize(builder, ={}) @builder, @options = builder, .symbolize_keys! end |
Instance Attribute Details
#builder ⇒ Object
Returns the value of attribute builder.
19 20 21 |
# File 'lib/case_form/element/base.rb', line 19 def builder @builder end |
#options ⇒ Object
Returns the value of attribute options.
19 20 21 |
# File 'lib/case_form/element/base.rb', line 19 def @options end |