Sha256: 54a97f9db915957d99e862a37ff25ed30bd9048c3a522e741f1c23a01069bd4e

Contents?: true

Size: 648 Bytes

Versions: 17

Compression:

Stored size: 648 Bytes

Contents

#
# $Id: 3b2d89d9ada2f5fcb043837dcc5c9631856d5b70 $
#
# Copyright (c) 1999-2006 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of LGPL, see the file "COPYING".
#

module Racc

  class SourceText
    def initialize(text, filename, lineno)
      @text = text
      @filename = filename
      @lineno = lineno
    end

    attr_reader :text
    attr_reader :filename
    attr_reader :lineno

    def to_s
      "#<SourceText #{location()}>"
    end

    def location
      "#{@filename}:#{@lineno}"
    end
  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
racc-1.4.16-java lib/racc/sourcetext.rb
racc-1.4.16 lib/racc/sourcetext.rb
racc-1.4.15-java lib/racc/sourcetext.rb
racc-1.4.15 lib/racc/sourcetext.rb
racc-1.4.14-java lib/racc/sourcetext.rb
racc-1.4.14 lib/racc/sourcetext.rb
racc-1.4.13-java lib/racc/sourcetext.rb
racc-1.4.13 lib/racc/sourcetext.rb
racc-1.4.12-java lib/racc/sourcetext.rb
racc-1.4.12 lib/racc/sourcetext.rb
racc-1.4.11 lib/racc/sourcetext.rb
gd-racc-1.4.11 lib/racc/sourcetext.rb
racc-1.4.10 lib/racc/sourcetext.rb
racc-1.4.9-java lib/racc/sourcetext.rb
racc-1.4.9 lib/racc/sourcetext.rb
racc-1.4.8 lib/racc/sourcetext.rb
racc-1.4.7 lib/racc/sourcetext.rb