Class: Phlexi::Field::Components::Base
- Inherits:
-
Phlexi::Field::COMPONENT_BASE
- Object
- Phlexi::Field::Components::Base
- Includes:
- Phlexi::Field::Common::Tokens
- Defined in:
- lib/phlexi/field/components/base.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field, **attributes) ⇒ Base
constructor
A new instance of Base.
Methods included from Phlexi::Field::Common::Tokens
Constructor Details
#initialize(field, **attributes) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 17 |
# File 'lib/phlexi/field/components/base.rb', line 11 def initialize(field, **attributes) @field = field @attributes = attributes build_attributes build_component_class end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
9 10 11 |
# File 'lib/phlexi/field/components/base.rb', line 9 def attributes @attributes end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
9 10 11 |
# File 'lib/phlexi/field/components/base.rb', line 9 def field @field end |