Sha256: 7acc4d1b229f25045a0b7ea8f3c1b3beaaf1a8726f9cb01315c47d15ec49726b

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

class Atome
  def /val
    val=val.value if val.instance_of? Atome
    value/val
  end

  def *val
    val=val.value if val.instance_of? Atome
    value*val
  end

  def -val
    val=val.value if val.instance_of? Atome
    value-val
  end


  def +val
    val=val.value if val.instance_of? Atome
    value+val
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
atome-0.5.3.8.8 lib/atome/extensions/mathematic.rb
atome-0.5.3.8.1 lib/atome/extensions/mathematic.rb
atome-0.5.3.8.0 lib/atome/extensions/mathematic.rb
atome-0.5.3.7.8 lib/atome/extensions/mathematic.rb