Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
validate / lib / validate / controls / validator / scenarios.rb
Size: Mime:
 module Validate
  module Controls
    module Validator
      module Scenarios
        def self.example
          Example.new
        end

        class Example
          module Validator
            def self.some_scenario
              SomeScenario
            end

            def self.some_other_scenario
              SomeOtherScenario
            end

            module SomeScenario
              def self.call(subject, state)
                state << :some_scenario
                false
              end
            end

            module SomeOtherScenario
              def self.call(subject, state)
                state << :some_other_scenario
                true
              end
            end
          end
        end
      end
    end
  end
end