lib/surrogate/hatchery.rb in surrogate-0.4.2 vs lib/surrogate/hatchery.rb in surrogate-0.4.3

- old
+ new

@@ -9,10 +9,10 @@ def initialize(klass) self.klass = klass klass_can_define_api_methods end - def define(method_name, options={}, block) + def define(method_name, options={}, &block) add_api_method_for method_name add_verb_helpers_for method_name add_noun_helpers_for method_name api_methods[method_name] = Options.new options, block klass