Method: BiteScript::Signature.path

Defined in:
lib/bitescript/signature.rb,
lib/bitescript/asm3/signature.rb

.path(cls) ⇒ Object



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/bitescript/signature.rb', line 33

def path(cls)
  case cls
  when Symbol
    return cls
  when Class, Module
    cls_name = cls.java_class.to_s || cls.java_class.name
  else
    cls_name = cls.name
  end
  cls_name.gsub('.', '/')
end