Sha256: bdd754d82b165a2986d5a39df5dbbcdea18de9cc1b808963a8a4461ced7cdd94

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

require 'danica/operator/chained'

module Danica
  class Product < 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.2.1 lib/danica/product.rb
danica-2.2.0 lib/danica/product.rb
danica-2.1.1 lib/danica/product.rb
danica-2.1.0 lib/danica/product.rb
danica-2.0.6 lib/danica/product.rb