Class: DatoDast::Nodes::Generic
- Inherits:
-
Base
- Object
- Base
- DatoDast::Nodes::Generic
show all
- Defined in:
- lib/dato_dast/nodes/generic.rb
Constant Summary
Constants inherited
from Base
Base::EMPTY, Base::NEWLINE
Instance Method Summary
collapse
Methods inherited from Base
#children, #config, #initialize, #node_config, #render, #render_children, #render_value, #tag_info, #type, type
Instance Method Details
#css_class ⇒ Object
8
9
10
|
# File 'lib/dato_dast/nodes/generic.rb', line 8
def css_class
@node["css_class"]
end
|
16
17
18
|
# File 'lib/dato_dast/nodes/generic.rb', line 16
def meta
@node["meta"]
end
|
#tag ⇒ Object
4
5
6
|
# File 'lib/dato_dast/nodes/generic.rb', line 4
def tag
@node["tag"]
end
|
#wrappers ⇒ Object
12
13
14
|
# File 'lib/dato_dast/nodes/generic.rb', line 12
def wrappers
Array.wrap(@node["wrappers"])
end
|