Class: Juli::Absyn::Verbatim

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

Instance Attribute Summary collapse

Attributes inherited from Node

#parent

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Verbatim

Returns a new instance of Verbatim.



36
37
38
# File 'lib/juli/absyn.rb', line 36

def initialize(str)
  @str    = str
end

Instance Attribute Details

#strObject

Returns the value of attribute str.



34
35
36
# File 'lib/juli/absyn.rb', line 34

def str
  @str
end

Instance Method Details

#accept(visitor) ⇒ Object



40
41
42
# File 'lib/juli/absyn.rb', line 40

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