lib/snfoil/context.rb in snfoil-context-1.0.1 vs lib/snfoil/context.rb in snfoil-context-1.1.0
- old
+ new
@@ -103,9 +103,11 @@
unless: options[:unless] }
end
end
def define_instance_methods(method_name)
+ return if method_defined? method_name
+
define_method(method_name) do |**options|
options
end
end
end