Sha256: 43fd163c4bd56a541fa3c7cefd3798f02c1d2608e6a20a680f29ef522d21236b

Contents?: true

Size: 539 Bytes

Versions: 3809

Compression:

Stored size: 539 Bytes

Contents

#--
#
#
#
# Copyright (c) 1999-2006 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the same terms of ruby.
# 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

3,809 entries across 3,799 versions & 34 rubygems

Version Path
cybrid_api_id_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.179 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.177 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.176 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.175 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.174 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.173 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
ory-client-1.16.3 vendor/bundle/ruby/3.1.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.172 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.171 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_id_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.170 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb
cybrid_api_organization_ruby-0.123.163 vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/lib/racc/sourcetext.rb