We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Node#inspect
1 parent 63b657b commit 117904aCopy full SHA for 117904a
lib/async/node.rb
@@ -219,6 +219,8 @@ def description
219
220
if @annotation
221
"#{@object_name} #{@annotation}"
222
+ elsif line = self.backtrace(0, 1)&.first
223
+ "#{@object_name} #{line}"
224
else
225
@object_name
226
end
@@ -232,6 +234,8 @@ def to_s
232
234
"\#<#{self.description}>"
233
235
236
237
+ alias inspect to_s
238
+
239
# Change the parent of this node.
240
# @param parent [Node, nil] the parent to attach to, or nil to detach.
241
# @return [self]
0 commit comments