Module: Kernel

Defined in:
lib/much-stub.rb

Instance Method Summary collapse

Instance Method Details

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



307
308
309
# File 'lib/much-stub.rb', line 307

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