Sha256: 71fcebba30fb6cc83ef0c61f6a17aec11433f3215ea3c5b7222156c745fafe3b

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 Bytes

Contents

require "source_position/version"

module SourcePosition
  def source_position
    self.source_location.join(':') if self.source_location
  end
end

class Method
  include SourcePosition
end

class UnboundMethod
  include SourcePosition
end

class Proc
  include SourcePosition
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
source_position-0.0.3 lib/source_position.rb