Class: Proc

Inherits:
Object
  • Object
show all
Defined in:
lib/lizarb/ruby/proc.rb

Instance Method Summary collapse

Instance Method Details

#absolute_sourceObject



8
9
10
11
# File 'lib/lizarb/ruby/proc.rb', line 8

def absolute_source
  sl = source_location
  "#{sl[0]}:#{sl[1]}"
end

#relative_sourceObject



4
5
6
# File 'lib/lizarb/ruby/proc.rb', line 4

def relative_source
  absolute_source.gsub "#{Lizarb::APP_DIR}/", ""
end