Class: Sudo::Proxy
- Inherits:
-
Object
- Object
- Sudo::Proxy
- Defined in:
- lib/sudo/proxy.rb
Instance Method Summary collapse
- #add_load_path(path) ⇒ Object
- #load_path ⇒ Object
- #loaded_specs ⇒ Object
- #proxy(object, method = :itself, *args, &blk) ⇒ Object
Instance Method Details
#add_load_path(path) ⇒ Object
28 29 30 |
# File 'lib/sudo/proxy.rb', line 28 def add_load_path(path) $LOAD_PATH << path end |
#load_path ⇒ Object
24 25 26 |
# File 'lib/sudo/proxy.rb', line 24 def load_path $LOAD_PATH end |
#loaded_specs ⇒ Object
19 20 21 22 |
# File 'lib/sudo/proxy.rb', line 19 def loaded_specs # Something's weird with this method when called outside Gem.loaded_specs.to_a.to_h end |
#proxy(object, method = :itself, *args, &blk) ⇒ Object
15 16 17 |
# File 'lib/sudo/proxy.rb', line 15 def proxy(object, method=:itself, *args, &blk) object.send method, *args, &blk end |