Class: Voom::Presenters::DSL::Components::Snackbar::Action
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #context, #id, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ Action
constructor
A new instance of Action.
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) ⇒ Action
Returns a new instance of Action.
22 23 24 25 26 |
# File 'lib/voom/presenters/dsl/components/snackbar.rb', line 22 def initialize(**attribs_, &block) super(type: :snackbar, **attribs_, &block) @text = attribs.delete(:text) end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
20 21 22 |
# File 'lib/voom/presenters/dsl/components/snackbar.rb', line 20 def text @text end |