summaryrefslogtreecommitdiff
path: root/symbol.rb
blob: f31bf0bee3ae49fb8ffd60d28b5b4c60c7b633d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Symbol
  # call-seq:
  #   to_sym -> self
  #
  # Returns +self+.
  #
  # Related: String#to_sym.
  def to_sym
    self
  end

  alias intern to_sym
end