Method: Hanami::Utils::String.demodulize
- Defined in:
- lib/hanami/utils/string.rb
.demodulize(input) ⇒ ::String
Returns the string without the Ruby namespace of the class
273 274 275 |
# File 'lib/hanami/utils/string.rb', line 273 def self.demodulize(input) ::String.new(input.to_s).split(NAMESPACE_SEPARATOR).last end |