pry-note 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pry-note.rb +1 -1
- data/lib/pry-note/version.rb +1 -1
- metadata +1 -1
data/lib/pry-note.rb
CHANGED
@@ -70,7 +70,7 @@ Pry::Commands.create_command "note" do
|
|
70
70
|
meth = Pry::Method.from_binding(target)
|
71
71
|
if internal_binding?(target) || !meth
|
72
72
|
obj = target.eval("self")
|
73
|
-
obj_name =
|
73
|
+
obj_name = obj.is_a?(Module) ? obj.name : obj.class.name
|
74
74
|
add_note(obj_name)
|
75
75
|
else
|
76
76
|
add_note(meth.name_with_owner)
|
data/lib/pry-note/version.rb
CHANGED