lib/usable.rb in usable-1.1.1 vs lib/usable.rb in usable-1.2.0

- old
+ new

@@ -45,6 +45,11 @@ remove_const const_name if const_defined? const_name const_set const_name, mod usable_config.modules << mod send :include, mod end + + # @return [Method] bound to the given -context- + def usable_method(context, method_name) + usable_config.available_methods[method_name].bind(context) + end end