Module: YARD::CodeObjects::Java::Base

Included in:
ClassObject, FieldObject, InterfaceObject, MethodObject, PackageObject
Defined in:
lib/openhab/yard/code_objects/java/base.rb

Overview

Represents a java.lang.Class

Which might be a class, an enum, or an interface

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



19
20
21
# File 'lib/openhab/yard/code_objects/java/base.rb', line 19

def self.included(klass)
  klass.singleton_class.include(ClassMethods)
end

Instance Method Details

#simple_nameObject



27
28
29
# File 'lib/openhab/yard/code_objects/java/base.rb', line 27

def simple_name
  name.to_s.split(".").last
end

#visibilityObject



23
24
25
# File 'lib/openhab/yard/code_objects/java/base.rb', line 23

def visibility
  :private
end