summaryrefslogtreecommitdiff
path: root/ractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ractor.rb')
-rw-r--r--ractor.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ractor.rb b/ractor.rb
index 772a0eb013..c73c574bdc 100644
--- a/ractor.rb
+++ b/ractor.rb
@@ -660,6 +660,8 @@ class Ractor
"#<Ractor:##{id}#{name ? ' '+name : ''}#{loc ? " " + loc : ''} #{status}>"
end
+ alias to_s inspect
+
# The name set in Ractor.new, or +nil+.
def name
__builtin_cexpr! %q{RACTOR_PTR(self)->name}