lib/source_position.rb in source_position-0.0.1 vs lib/source_position.rb in source_position-0.0.2
- old
+ new
@@ -1,9 +1,9 @@
require "source_position/version"
module SourcePosition
def source_position
- self.source_location.join(':')
+ self.source_location.join(':') if self.source_location
end
end
class Method
include SourcePosition