ruby/symbol.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 строки
212 B
Ruby
Исходник Обычный вид История

class Symbol
# call-seq:
# to_sym -> self
#
# Returns +self+.
#
# Symbol#intern is an alias for Symbol#to_sym.
#
# Related: String#to_sym.
def to_sym
self
end
alias intern to_sym
end