Class: Idcf::Cli::Lib::Util::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/idcf/cli/lib/util/name.rb

Overview

name

Class Method Summary collapse

Class Method Details

.namespace(cls_name) ⇒ Object



9
10
11
12
13
# File 'lib/idcf/cli/lib/util/name.rb', line 9

def namespace(cls_name)
  class_names = cls_name.split('::')
  class_names.pop
  class_names.join('::')
end