Module: VG::SO::GetModuleNameWithoutNamespace

Defined in:
lib/vg/s_o/get_module_name_without_namespace.rb

Class Method Summary collapse

Class Method Details

.call(string) ⇒ Object



7
8
9
# File 'lib/vg/s_o/get_module_name_without_namespace.rb', line 7

def self.call(string)
  string.match(/(?:::)*([A-Za-z0-9]+)$/)[1]
end