Sha256: 92bdabae77c197f556b72e5d0f1f2e9002f8324b6f5390077730fb874d29da5f

Contents?: true

Size: 187 Bytes

Versions: 13

Compression:

Stored size: 187 Bytes

Contents

module Kernel

  unless method_defined?(:source_location) # 1.9

    def source_location
      file, line, meth = *caller(1).first.split(':')
      return file, line
    end

  end

end

Version data entries

13 entries across 12 versions & 1 rubygems

Version Path
facets-2.9.3 lib/core/facets/kernel/source_location.rb
facets-2.9.2 src/core/facets/kernel/source_location.rb
facets-2.9.2 lib/core/facets/kernel/source_location.rb
facets-2.9.1 lib/core/facets/kernel/source_location.rb
facets-2.9.0 lib/core/facets/kernel/source_location.rb
facets-2.9.0.pre.2 lib/core/facets/kernel/source_location.rb
facets-2.9.0.pre.1 lib/core/facets/kernel/source_location.rb
facets-2.8.4 lib/core/facets/kernel/source_location.rb
facets-2.8.3 lib/core/facets/kernel/source_location.rb
facets-2.8.2 lib/core/facets/kernel/source_location.rb
facets-2.8.1 lib/core/facets/kernel/source_location.rb
facets-2.8.0 lib/core/facets/kernel/source_location.rb
facets-2.7.0 lib/core/facets/kernel/source_location.rb