Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/lemon/core_ext/module.rb

Direct Known Subclasses

Lemon::World

Instance Method Summary collapse

Instance Method Details

#namespaceObject



4
5
6
7
# File 'lib/lemon/core_ext/module.rb', line 4

def namespace
  i = name.rindex('::')
  i ? name[0...i] : name
end