Class
Attributes
Read
No documentation available
Read
No documentation available
Read
No documentation available
Class Methods
lib/racc/sourcetext.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/sourcetext.rb, line 16
def initialize(text, filename, lineno)
@text = text
@filename = filename
@lineno = lineno
end
No documentation available
Instance Methods
#
lib/racc/sourcetext.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/sourcetext.rb, line 30
def location
"#{@filename}:#{@lineno}"
end
No documentation available
#
lib/racc/sourcetext.rb
View on GitHub
# File tmp/rubies/ruby-3.1.3/lib/racc/sourcetext.rb, line 26
def to_s
"#<SourceText #{location()}>"
end
No documentation available