Class: Rux::AST::RubyAttrNode
- Inherits:
-
Object
- Object
- Rux::AST::RubyAttrNode
- Defined in:
- lib/rux/ast/ruby_attr_node.rb
Instance Attribute Summary collapse
-
#ruby_node ⇒ Object
readonly
Returns the value of attribute ruby_node.
-
#tag_node ⇒ Object
Returns the value of attribute tag_node.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #code ⇒ Object
-
#initialize(ruby_node) ⇒ RubyAttrNode
constructor
A new instance of RubyAttrNode.
- #name ⇒ Object
- #ruby_code? ⇒ Boolean
Constructor Details
#initialize(ruby_node) ⇒ RubyAttrNode
Returns a new instance of RubyAttrNode.
7 8 9 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 7 def initialize(ruby_node) @ruby_node = ruby_node end |
Instance Attribute Details
#ruby_node ⇒ Object (readonly)
Returns the value of attribute ruby_node.
4 5 6 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 4 def ruby_node @ruby_node end |
#tag_node ⇒ Object
Returns the value of attribute tag_node.
5 6 7 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 5 def tag_node @tag_node end |
Instance Method Details
#accept(visitor) ⇒ Object
15 16 17 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 15 def accept(visitor) visitor.visit_attr(self) end |
#code ⇒ Object
11 12 13 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 11 def code ruby_node.code end |
#name ⇒ Object
23 24 25 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 23 def name nil end |
#ruby_code? ⇒ Boolean
19 20 21 |
# File 'lib/rux/ast/ruby_attr_node.rb', line 19 def ruby_code? true end |