Class: DatoDast::Nodes::Generic

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from DatoDast::Nodes::Base

Instance Method Details

#css_classObject



8
9
10
# File 'lib/dato_dast/nodes/generic.rb', line 8

def css_class
  @node["css_class"]
end

#metaObject



16
17
18
# File 'lib/dato_dast/nodes/generic.rb', line 16

def meta
  @node["meta"]
end

#tagObject



4
5
6
# File 'lib/dato_dast/nodes/generic.rb', line 4

def tag
  @node["tag"]
end

#wrappersObject



12
13
14
# File 'lib/dato_dast/nodes/generic.rb', line 12

def wrappers
  Array.wrap(@node["wrappers"])
end