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