Class: EasyAdmin::Layouts::Nodes::Heading
- Defined in:
- lib/easy_admin/layouts/nodes/stubs.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from BaseNode
#attributes, #children, #metadata, #visible_if
Instance Method Summary collapse
-
#initialize(text, attributes = {}) ⇒ Heading
constructor
A new instance of Heading.
Methods inherited from BaseNode
#[], #[]=, #accept, #add_child, #children?, #node_type, #visible?
Constructor Details
#initialize(text, attributes = {}) ⇒ Heading
Returns a new instance of Heading.
100 101 102 103 |
# File 'lib/easy_admin/layouts/nodes/stubs.rb', line 100 def initialize(text, attributes = {}) @text = text super(attributes) end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
105 106 107 |
# File 'lib/easy_admin/layouts/nodes/stubs.rb', line 105 def text @text end |