Class: Deadfire::FrontEnd::RulesetNode
- Defined in:
- lib/deadfire/front_end/ruleset_node.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(selector, block) ⇒ RulesetNode
constructor
A new instance of RulesetNode.
Constructor Details
#initialize(selector, block) ⇒ RulesetNode
Returns a new instance of RulesetNode.
8 9 10 11 |
# File 'lib/deadfire/front_end/ruleset_node.rb', line 8 def initialize(selector, block) @selector = selector @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
6 7 8 |
# File 'lib/deadfire/front_end/ruleset_node.rb', line 6 def block @block end |
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
6 7 8 |
# File 'lib/deadfire/front_end/ruleset_node.rb', line 6 def selector @selector end |
Instance Method Details
#accept(visitor) ⇒ Object
13 14 15 |
# File 'lib/deadfire/front_end/ruleset_node.rb', line 13 def accept(visitor) visitor.visit_ruleset_node(self) end |