Module: ConventionalExtensions::Frame

Defined in:
lib/conventional_extensions.rb

Class Method Summary collapse

Class Method Details

.previousObject



27
28
29
# File 'lib/conventional_extensions.rb', line 27

def self.previous
  caller_locations(2, 1).first # Use 2 instead of 1 so we get the frame of who called us.
end