Repository URL to install this package:
|
Version:
0.3.1.3 ▾
|
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