Sha256: fa5fe2e14117e8eedba24a29ac66e90a106d181d2488eafc76eac2d7db8c76a1
Contents?: true
Size: 797 Bytes
Versions: 5
Compression:
Stored size: 797 Bytes
Contents
integer_1 = Integer(1) # !expects NoMethodError: type=::Integer, method=foo integer_1.foo integer_2 = Integer("1") # !expects NoMethodError: type=::Integer, method=foo integer_2.foo class WithToInt def to_int; 1; end end integer_3 = Integer(WithToInt.new) # !expects NoMethodError: type=::Integer, method=foo integer_3.foo class WithToI def to_i; 1; end end integer_4 = Integer(WithToI.new) # !expects NoMethodError: type=::Integer, method=foo integer_4.foo integer_5 = Integer("10", 2) # !expects NoMethodError: type=::Integer, method=foo integer_5.foo # !expects IncompatibleArguments: receiver=::Object, method_type=(::String, ::Integer) -> ::Integer Integer(Object.new) # !expects IncompatibleArguments: receiver=::Object, method_type=(::String, ::Integer) -> ::Integer Integer(nil)
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
steep-0.11.1 | smoke/integer/a.rb |
steep-0.11.0 | smoke/integer/a.rb |
steep-0.10.0 | smoke/integer/a.rb |
steep-0.9.0 | smoke/integer/a.rb |
steep-0.8.2 | smoke/integer/a.rb |