Module: MethodReload::MethodExtensions

Included in:
Method, UnboundMethod
Defined in:
lib/method_reload.rb

Instance Method Summary collapse

Instance Method Details

#reloadObject

Reload the code for the method from disk.

Examples:

method

method(:hello).reload

instance method

instance_method(:goodbye)


14
15
16
# File 'lib/method_reload.rb', line 14

def reload
  owner.module_eval source, *source_location
end