Class: Deadfire::FrontEnd::AtRuleNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(at_keyword, value, block) ⇒ AtRuleNode

Returns a new instance of AtRuleNode.



8
9
10
11
12
# File 'lib/deadfire/front_end/at_rule_node.rb', line 8

def initialize(at_keyword, value, block)
  @at_keyword = at_keyword
  @value = value
  @block = block
end

Instance Attribute Details

#at_keywordObject (readonly)

Returns the value of attribute at_keyword.



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

def at_keyword
  @at_keyword
end

#blockObject (readonly)

Returns the value of attribute block.



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

def block
  @block
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#accept(visitor) ⇒ Object



14
15
16
# File 'lib/deadfire/front_end/at_rule_node.rb', line 14

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