Sha256: 11ec486f83c27e787d5e1964f7fe05f250058a30b4e2a513c95cfc8e70abcd6a
Contents?: true
Size: 300 Bytes
Versions: 6
Compression:
Stored size: 300 Bytes
Contents
module Kernel private # Retreive the current running method name. # # There is a lot of debate on what to call this. # #me returns a symbol, not a string. # # def tester; me; end # tester #=> :tester # def me /\`([^\']+)\'/.match(caller(1).first)[1].to_sym end end
Version data entries
6 entries across 6 versions & 1 rubygems