Sha256: df0adc1a444d266e9ea0cdc8d737f161132071b2c07605301ca3c414cc4b5774

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

class Fixnum

  alias :__clef__plus__ :+
  alias :__clef__asterisk__ :*

  def +(rhs)
    if rhs.is_a?(Clef::Sequence)
      rhs + self
    else
      __clef__plus__(rhs)
    end
  end

  def *(rhs)
    if rhs.is_a?(Clef::Sequence)
      rhs * self
    else
      __clef__asterisk__(rhs)
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
teejayvanslyke-clef-0.0.0 lib/core_ext/fixnum.rb