Sha256: ba6cc5fa15a4de77cdf1e08e58d8d1c12036b9ac499e6d0354b1a67c62c5c0d5

Contents?: true

Size: 440 Bytes

Versions: 73

Compression:

Stored size: 440 Bytes

Contents

class LengthCalculator
  def max0(x, y)
    if x.size > y.size
      x
    else
      y
    end
  end

  def max1(x, y)
    if x.size > y.size
      x
    else
      y
    end
  end

  def max2(x, y)
    if x.size > y.size
      x
    else
      y
    end
  end
end

calc = LengthCalculator.new()

calc.max0("foo", "bar")
calc.max1("foo", "bar")
calc.max2("foo", "bar")

calc.max0(true, false)
calc.max1(true, false)
calc.max2(true, false)

Version data entries

73 entries across 73 versions & 3 rubygems

Version Path
steep-1.10.0 sample/lib/length.rb
steep-1.10.0.pre.3 sample/lib/length.rb
steep-1.10.0.pre.2 sample/lib/length.rb
steep-1.10.0.pre.1 sample/lib/length.rb
steep-1.10.0.dev.1 sample/lib/length.rb
steep-relaxed-1.9.4.3 sample/lib/length.rb
steep-relaxed-1.9.3.3 sample/lib/length.rb
steep-activesupport-4-1.9.4 sample/lib/length.rb
steep-activesupport-4-1.9.3.1 sample/lib/length.rb
steep-1.9.4 sample/lib/length.rb
steep-activesupport-4-1.9.3 sample/lib/length.rb
steep-1.9.3 sample/lib/length.rb
steep-1.9.2 sample/lib/length.rb
steep-1.9.1 sample/lib/length.rb
steep-1.9.0 sample/lib/length.rb
steep-1.9.0.dev.2 sample/lib/length.rb
steep-1.9.0.dev.1 sample/lib/length.rb
steep-1.8.3 sample/lib/length.rb
steep-1.8.2 sample/lib/length.rb
steep-1.8.1 sample/lib/length.rb