Module: Symbolism::Conversions::Class

Included in:
Class
Defined in:
lib/symbolism/symbol.rb

Instance Method Summary collapse

Instance Method Details

#to_classObject



8
9
10
# File 'lib/symbolism/symbol.rb', line 8

def to_class
  self
end

#to_symObject



4
5
6
# File 'lib/symbolism/symbol.rb', line 4

def to_sym
  self.to_s.underscore.to_sym
end