Class: Deadfire::FrontEnd::StylesheetNode
- Inherits:
-
Object
- Object
- Deadfire::FrontEnd::StylesheetNode
- Defined in:
- lib/deadfire/front_end/stylesheet_node.rb
Instance Attribute Summary collapse
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
Instance Method Summary collapse
- #<<(node) ⇒ Object
- #accept(visitor) ⇒ Object
-
#initialize ⇒ StylesheetNode
constructor
A new instance of StylesheetNode.
Constructor Details
#initialize ⇒ StylesheetNode
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
#statements ⇒ Object (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 |