module TypedParameter::Constraints

Public Class Methods

[](name) click to toggle source
# File lib/typed_parameter/constraints.rb, line 17
def [](name)
  @constraints[name].freeze
end
register(key, constraint) click to toggle source
# File lib/typed_parameter/constraints.rb, line 12
def register(key, constraint)
  @constraints ||= {}
  @constraints[key] = constraint
end