lib/datacaster/definition_dsl.rb in datacaster-3.1.5 vs lib/datacaster/definition_dsl.rb in datacaster-3.2.0
- old
+ new
@@ -23,10 +23,10 @@
raise ArgumentError.new("Datacaster: Unknown definition #{definition.inspect}, which doesn't respond to #call")
end
end
def self.eval(&block)
- new.instance_exec(&block)
+ new.instance_eval(&block)
end
def method_missing(m, *args)
arg_string = args.empty? ? "" : "(#{args.map(&:inspect).join(', ')})"
raise RuntimeError, "Datacaster: unknown definition '#{m}#{arg_string}'", caller