Class: Module

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

Overview

Extensions to Module

Instance Method Summary collapse

Instance Method Details

#simple_nameString?

Returns the name of the class or module, without any containing module or package.

Returns:

  • (String, nil)


10
11
12
13
14
# File 'lib/openhab/core_ext/ruby/module.rb', line 10

def simple_name
  return unless name

  @simple_name ||= java_class&.simple_name || name.split("::").last
end