if RUBY_VERSION < '1.9' unless defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/ require 'ruby18_source_location' end end require "source_position/version" require "source_position/rbx_source_location" 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::RbxSourceLocation include SourcePosition end