Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/lilutils/cli/cli.rb

Overview

Note:

A simple_name is just the name of the class/module without encompassing modules

Adds the simple_name method to Module.

Instance Method Summary collapse

Instance Method Details

#simple_nameObject

suggested by Brian Candler



5
6
7
# File 'lib/lilutils/cli/cli.rb', line 5

def simple_name
  name.gsub(/^.*::/, '')
end