1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/hash/fixtures/name.rb

31 lines
488 B
Ruby
Raw Normal View History

2020-10-24 09:52:37 -04:00
class TrueClass
def hash
raise "TrueClass#hash should not be called"
end
end
class FalseClass
def hash
raise "FalseClass#hash should not be called"
end
end
class Integer
def hash
raise "Integer#hash should not be called"
end
end
class Float
def hash
raise "Float#hash should not be called"
end
end
class String
def hash
raise "String#hash should not be called"
end
end
class Symbol
def hash
raise "Symbol#hash should not be called"
end
end