Class: EasyAdmin::Layouts::Nodes::Content
- Defined in:
- lib/easy_admin/layouts/nodes/stubs.rb
Overview
Additional nodes needed by DSL
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Attributes inherited from BaseNode
#attributes, #children, #metadata, #visible_if
Instance Method Summary collapse
-
#initialize(attributes = {}, block: nil) ⇒ Content
constructor
A new instance of Content.
Methods inherited from BaseNode
#[], #[]=, #accept, #add_child, #children?, #node_type, #visible?
Constructor Details
#initialize(attributes = {}, block: nil) ⇒ Content
Returns a new instance of Content.
79 80 81 82 |
# File 'lib/easy_admin/layouts/nodes/stubs.rb', line 79 def initialize(attributes = {}, block: nil) @block = block super(attributes) end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
84 85 86 |
# File 'lib/easy_admin/layouts/nodes/stubs.rb', line 84 def block @block end |