Class: Voom::Presenters::DSL::Components::Snackbar
- Defined in:
- lib/voom/presenters/dsl/components/snackbar.rb
Defined Under Namespace
Classes: Action
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
- #action(text = nil, &block) ⇒ Object
-
#initialize(**attribs_, &block) ⇒ Snackbar
constructor
A new instance of Snackbar.
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ Snackbar
Returns a new instance of Snackbar.
8 9 10 11 12 |
# File 'lib/voom/presenters/dsl/components/snackbar.rb', line 8 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.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/snackbar.rb', line 6 def text @text end |