Sha256: c4099f9168e873a55bfb901dc8f28b118a274601df7c97b86e300acc3cb01a7e

Contents?: true

Size: 365 Bytes

Versions: 54

Compression:

Stored size: 365 Bytes

Contents

# @type var x: Numeric
x = _ = 1
integer_1 = Integer(x)
integer_1.foo

integer_2 = Integer("1")
integer_2.foo

class WithToInt
  def to_int; 1; end
end
integer_3 = Integer(WithToInt.new)
integer_3.foo

class WithToI
  def to_i; 1; end
end
integer_4 = Integer(WithToI.new)
integer_4.foo

integer_5 = Integer("10", 2)
integer_5.foo

Integer(Object.new)

Integer(nil)

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
steep-1.6.0 smoke/integer/a.rb
steep-1.6.0.pre.4 smoke/integer/a.rb
steep-1.6.0.pre.3 smoke/integer/a.rb
steep-1.6.0.pre.2 smoke/integer/a.rb
steep-1.6.0.pre.1 smoke/integer/a.rb
steep-1.5.3 smoke/integer/a.rb
steep-1.5.2 smoke/integer/a.rb
steep-1.5.1 smoke/integer/a.rb
steep-1.5.0 smoke/integer/a.rb
steep-1.5.0.pre.6 smoke/integer/a.rb
steep-1.5.0.pre.5 smoke/integer/a.rb
steep-1.5.0.pre.4 smoke/integer/a.rb
steep-1.5.0.pre.3 smoke/integer/a.rb
steep-1.5.0.pre.2 smoke/integer/a.rb
steep-1.5.0.pre.1 smoke/integer/a.rb
steep-1.4.0 smoke/integer/a.rb
steep-1.4.0.dev.5 smoke/integer/a.rb
steep-1.4.0.dev.4 smoke/integer/a.rb
steep-1.4.0.dev.3 smoke/integer/a.rb
steep-1.3.2 smoke/integer/a.rb