Module: Kernel

Defined in:
lib/much-stub.rb

Instance Method Summary collapse

Instance Method Details

#caller_locations(start = 1, length = nil) ⇒ Object



284
285
286
# File 'lib/much-stub.rb', line 284

def caller_locations(start = 1, length = nil)
  length ? caller[start, length] : caller[start..-1]
end