Class: Voom::Presenters::DSL::Components::Page
- Defined in:
- lib/voom/presenters/dsl/components/page.rb
Instance Attribute Summary collapse
-
#background_color(color = nil) ⇒ Object
Returns the value of attribute background_color.
-
#title(title = nil) ⇒ Object
Returns the value of attribute title.
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ Page
constructor
A new instance of Page.
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) ⇒ Page
Returns a new instance of Page.
8 9 10 11 12 |
# File 'lib/voom/presenters/dsl/components/page.rb', line 8 def initialize(**attribs_, &block) super(type: :page, **attribs_, &block) end |
Instance Attribute Details
#background_color(color = nil) ⇒ Object
Returns the value of attribute background_color.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/page.rb', line 6 def background_color @background_color end |
#title(title = nil) ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/page.rb', line 6 def title @title end |