apparently nums are freezable
This commit is contained in:
parent
5c18b85a8e
commit
df22160173
|
@ -23,7 +23,7 @@ if ENV['TEST'] || ENV['CONTRACTS'] == 'true'
|
|||
end
|
||||
|
||||
def valid?(val)
|
||||
(val.frozen? || val.nil?) && Contract.valid?(val, @contract)
|
||||
(val.frozen? || val.nil? || [::TrueClass, ::FalseClass, ::Fixnum].include?(val.class)) && Contract.valid?(val, @contract)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue