Class: Cheri::Explorer::MethodRec
- Inherits:
-
Object
- Object
- Cheri::Explorer::MethodRec
- Defined in:
- lib/cheri/explorer/explorer.rb
Instance Method Summary collapse
-
#initialize(mod) ⇒ MethodRec
constructor
A new instance of MethodRec.
- #pri ⇒ Object
- #pri_inst ⇒ Object
- #pro ⇒ Object
- #pro_inst ⇒ Object
- #pub ⇒ Object
- #pub_inst ⇒ Object
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
#pri ⇒ Object
318 319 320 |
# File 'lib/cheri/explorer/explorer.rb', line 318 def pri @pv end |
#pri_inst ⇒ Object
327 328 329 |
# File 'lib/cheri/explorer/explorer.rb', line 327 def pri_inst @pvi end |
#pro ⇒ Object
315 316 317 |
# File 'lib/cheri/explorer/explorer.rb', line 315 def pro @pt end |
#pro_inst ⇒ Object
324 325 326 |
# File 'lib/cheri/explorer/explorer.rb', line 324 def pro_inst @pti end |
#pub ⇒ Object
312 313 314 |
# File 'lib/cheri/explorer/explorer.rb', line 312 def pub @pu end |
#pub_inst ⇒ Object
321 322 323 |
# File 'lib/cheri/explorer/explorer.rb', line 321 def pub_inst @pui end |