class Getto::Params

Constants

VERSION

Public Class Methods

new(factory=Validator::Factory.new) click to toggle source
# File lib/getto/params.rb, line 5
def initialize(factory=Validator::Factory.new)
  @factory = factory
end

Public Instance Methods

validate(params) { |factory| ... } click to toggle source
# File lib/getto/params.rb, line 9
def validate(params)
  yield(@factory).call(params)
end