lib/sham.rb in notahat-machinist-0.1.7 vs lib/sham.rb in notahat-machinist-0.2.0

- old
+ new

@@ -23,16 +23,10 @@ def self.reset @@shams.values.each(&:reset) end def self.define(&block) - definer = Object.new - class << definer - def method_missing(*args, &block) - Sham.send(*args, &block) - end - end - definer.instance_eval(&block) + Sham.instance_eval(&block) end def initialize(name, options = {}, &block) @name = name @generator = block