Parent

Racc::SourceText

Attributes

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

Public Class Methods

new(text, filename, lineno) click to toggle source
    # File lib/racc/sourcetext.rb, line 15
15:     def initialize(text, filename, lineno)
16:       @text = text
17:       @filename = filename
18:       @lineno = lineno
19:     end

Public Instance Methods

location() click to toggle source
    # File lib/racc/sourcetext.rb, line 29
29:     def location
30:       "#{@filename}:#{@lineno}"
31:     end
to_s() click to toggle source
    # File lib/racc/sourcetext.rb, line 25
25:     def to_s
26:       "#<SourceText #{location()}>"
27:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.