class Racc::SourceText

属性

filename[R]
lineno[R]
text[R]

公共类方法

new(text, filename, lineno) 点击切换源代码
# File racc-1.8.1/lib/racc/sourcetext.rb, line 16
def initialize(text, filename, lineno)
  @text = text
  @filename = filename
  @lineno = lineno
end

公共实例方法

location() 点击切换源代码
# File racc-1.8.1/lib/racc/sourcetext.rb, line 30
def location
  "#{@filename}:#{@lineno}"
end
to_s() 点击切换源代码
# File racc-1.8.1/lib/racc/sourcetext.rb, line 26
def to_s
  "#<SourceText #{location()}>"
end