Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/active_metadata/helpers.rb

Instance Method Summary collapse

Instance Method Details

#to_classObject

transform a symbol/string into a class



13
14
15
# File 'lib/active_metadata/helpers.rb', line 13

def to_class
  self.to_s.camelize.constantize
end