1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
module QA module Factory class Base def self.fabricate!(*args) new.tap do |factory| yield factory if block_given? return factory.fabricate!(*args) end end def fabricate!(*_args) raise NotImplementedError end end end end