Class: Deadfire::FrontEnd::StylesheetNode

Inherits:
Object
  • Object
show all
Defined in:
lib/deadfire/front_end/stylesheet_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStylesheetNode

Returns a new instance of StylesheetNode.



8
9
10
# File 'lib/deadfire/front_end/stylesheet_node.rb', line 8

def initialize
  @statements = []
end

Instance Attribute Details

#statementsObject (readonly)

Returns the value of attribute statements.



6
7
8
# File 'lib/deadfire/front_end/stylesheet_node.rb', line 6

def statements
  @statements
end

Instance Method Details

#<<(node) ⇒ Object



16
17
18
# File 'lib/deadfire/front_end/stylesheet_node.rb', line 16

def <<(node)
  @statements << node
end

#accept(visitor) ⇒ Object



12
13
14
# File 'lib/deadfire/front_end/stylesheet_node.rb', line 12

def accept(visitor)
  visitor.visit_stylesheet_node(self)
end