Sha256: f063f48f212a8ab7e8fe18cc399a1ae3d567c5425b5c9780dee281af8a590f9f

Contents?: true

Size: 284 Bytes

Versions: 2

Compression:

Stored size: 284 Bytes

Contents

require 'danica/operator/chained'

module Danica
  class Product < Operator::Chained
    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

2 entries across 2 versions & 1 rubygems

Version Path
danica-2.0.5 lib/danica/product.rb
danica-2.0.4 lib/danica/product.rb