Class: Juli::LineAbsyn::StringNode

Inherits:
Node
  • Object
show all
Defined in:
lib/juli/line_parser.tab.rb

Direct Known Subclasses

Url, WikiName

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ StringNode

Returns a new instance of StringNode.



19
20
21
# File 'lib/juli/line_parser.tab.rb', line 19

def initialize(str)
  @str = str
end

Instance Attribute Details

#strObject

Returns the value of attribute str.



17
18
19
# File 'lib/juli/line_parser.tab.rb', line 17

def str
  @str
end

Instance Method Details

#accept(visitor) ⇒ Object



23
24
25
# File 'lib/juli/line_parser.tab.rb', line 23

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