Module: Kernel

Defined in:
lib/who_called_me.rb

Instance Method Summary collapse

Instance Method Details

#who_called_me(key = nil) ⇒ Object



8
9
10
11
# File 'lib/who_called_me.rb', line 8

def who_called_me(key=nil)
  nof_internal_methods_to_skim = 3 #3  #this + WhoCalledMe._who_called_me + _fulltrace
  WhoCalledMe.record_i_was_called(key, nof_internal_methods_to_skim)
end

#who_called_me_data(options = {}) ⇒ Object



12
13
14
# File 'lib/who_called_me.rb', line 12

def who_called_me_data(options={})
  WhoCalledMe._recorded_calls_data(options)
end