Method: Cuboid::Utilities#caller_path
- Defined in:
- lib/cuboid/utilities.rb
#caller_path(offset = 2) ⇒ String
Returns Filepath of the caller.
20 21 22 |
# File 'lib/cuboid/utilities.rb', line 20 def caller_path( offset = 2 ) ::Kernel.caller[offset].split( /:(\d+):in/ ).first end |