Class: Product

Inherits:
AssocBinOpe show all
Defined in:
lib/annlat/LaRuby.rb

Instance Attribute Summary

Attributes inherited from BinOpe

#args, #oper

Instance Method Summary collapse

Methods inherited from AssocBinOpe

#latex

Methods inherited from BinOpe

#latex

Methods inherited from Latex

#*, #**, #+, #-, #-@, #/, #glue, #is, #latex, #my_json, #ne, #of, #to_ltx, #wrap

Constructor Details

#initialize(*some_factors) ⇒ Product



146
147
148
149
# File 'lib/annlat/LaRuby.rb', line 146

def initialize(*some_factors)
  super(Times, *some_factors)
  @args.map!{|a| (a.kind_of?(Negative) or a.kind_of?(Sum))? a.wrap : a}
end