apparently nums are freezable
This commit is contained in:
parent
5c18b85a8e
commit
df22160173
1 changed files with 1 additions and 1 deletions
|
@ -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