Sha256: 9804f4db15e9a835b49a529782ff6483a4d84d2dbc3e159abbaaccb767f99aaa

Contents?: true

Size: 298 Bytes

Versions: 5

Compression:

Stored size: 298 Bytes

Contents

module Danica
  class Operator::Multiplication < Operator::Chained
    default_value :priority, 2

    def *(other)
      repack(other)
    end

    private

    def tex_symbol
      '\cdot'
    end

    def gnu_symbol
      '*'
    end

    def chain_operation(a, b)
      a * b
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
danica-2.4.2 lib/danica/operator/multiplication.rb
danica-2.4.1 lib/danica/operator/multiplication.rb
danica-2.4.0 lib/danica/operator/multiplication.rb
danica-2.3.1 lib/danica/operator/multiplication.rb
danica-2.3.0 lib/danica/operator/multiplication.rb