Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/stars/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#constantizeObject

Poor man’s constantize



3
4
5
# File 'lib/stars/core_ext/string.rb', line 3

def constantize
  Stars.const_get(to_s.capitalize)
end