class TypedParameter::Constraints::BooleanConstraint

Constants

FALSE_VALUES
TRUE_VALUES

Public Class Methods

value(value) click to toggle source
# File lib/typed_parameter/constraints/boolean_constraint.rb, line 9
def self.value(value)
  return true if TRUE_VALUES.include?(value)
  return false if FALSE_VALUES.include?(value)
end