class Racc::SourceText
Attributes
filename[R]
lineno[R]
text[R]
Public Class Methods
new(text, filename, lineno)
click to toggle source
# File racc/sourcetext.rb, line 15 def initialize(text, filename, lineno) @text = text @filename = filename @lineno = lineno end
Public Instance Methods
location()
click to toggle source
# File racc/sourcetext.rb, line 29 def location "#{@filename}:#{@lineno}" end
to_s()
click to toggle source
# File racc/sourcetext.rb, line 25 def to_s "#<SourceText #{location()}>" end