summaryrefslogtreecommitdiff
path: root/symbol.rb
blob: 0b23ebb267ea9002d0562e6f4dffae8f52551bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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