Class: Voom::Presenters::DSL::Components::Input
- Includes:
- Mixins::Tooltips
- Defined in:
- lib/voom/presenters/dsl/components/input.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #context, #id, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ Input
constructor
A new instance of Input.
Methods included from Mixins::Tooltips
Methods included from Mixins::Event
Methods inherited from Base
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ Input
Returns a new instance of Input.
12 13 14 15 |
# File 'lib/voom/presenters/dsl/components/input.rb', line 12 def initialize(**attribs_, &block) super(**attribs_, &block) @name = attribs.delete(:name) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/voom/presenters/dsl/components/input.rb', line 10 def name @name end |