Class: Cheri::Explorer::MethodRec

Inherits:
Object
  • Object
show all
Defined in:
lib/cheri/explorer/explorer.rb

Instance Method Summary collapse

Constructor Details

#initialize(mod) ⇒ MethodRec

Returns a new instance of MethodRec.



302
303
304
305
306
307
308
309
310
# File 'lib/cheri/explorer/explorer.rb', line 302

def initialize(mod)
  @pu = mod.public_methods(false) if mod.respond_to?(:public_methods)
  # rescue works around JRuby bug prior to 1.0.0RC3
  @pt = mod.protected_methods(false) rescue mod.protected_methods if mod.respond_to?(:protected_methods)
  @pv = mod.private_methods(false) rescue mod.private_methods if mod.respond_to?(:private_methods)
  @pui = mod.public_instance_methods(false) if mod.respond_to?(:public_instance_methods)
  @pti = mod.protected_instance_methods(false) if mod.respond_to?(:protected_instance_methods)
  @pvi = mod.private_instance_methods(false) if mod.respond_to?(:private_instance_methods)
end

Instance Method Details

#priObject



318
319
320
# File 'lib/cheri/explorer/explorer.rb', line 318

def pri
  @pv
end

#pri_instObject



327
328
329
# File 'lib/cheri/explorer/explorer.rb', line 327

def pri_inst
  @pvi  
end

#proObject



315
316
317
# File 'lib/cheri/explorer/explorer.rb', line 315

def pro
  @pt
end

#pro_instObject



324
325
326
# File 'lib/cheri/explorer/explorer.rb', line 324

def pro_inst
  @pti  
end

#pubObject



312
313
314
# File 'lib/cheri/explorer/explorer.rb', line 312

def pub
  @pu  
end

#pub_instObject



321
322
323
# File 'lib/cheri/explorer/explorer.rb', line 321

def pub_inst
  @pui
end