instance method
Symbol#id2name
() -> ::String
id2name
symbol.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/symbol.rb, line 10
def to_s
Primitive.attr! :leaf
Primitive.cexpr! 'rb_sym_to_s(self)'
end
Alias of #to_s
Returns a string representation of self (not including the leading colon):
Example
:foo.to_s # => "foo"
Related: Symbol#inspect, Symbol#name.