pangdudu-rofl 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rofl.rb +2 -1
- metadata +1 -1
data/lib/rofl.rb
CHANGED
@@ -48,7 +48,8 @@ module Rofl
|
|
48
48
|
skip = 2 #indicates how many items we skip in the execution stack trace
|
49
49
|
call_trace = caller(skip)
|
50
50
|
last_meth = call_trace[0][/\`.*?\'/]
|
51
|
-
last_meth_name =
|
51
|
+
last_meth_name = "notrace"
|
52
|
+
last_meth_name = last_meth.delete("\`").delete("\'") unless last_meth.nil?
|
52
53
|
return last_meth_name
|
53
54
|
end
|
54
55
|
#check if we or an object are ready to rofl
|