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
2020-10-24 15:53:53 +02:00

30 lines
488 B
Ruby

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