Class: Product
- Inherits:
-
AssocBinOpe
- Object
- Latex
- BinOpe
- AssocBinOpe
- Product
- Defined in:
- lib/annlat/LaRuby.rb
Instance Attribute Summary
Attributes inherited from BinOpe
Instance Method Summary collapse
-
#initialize(*some_factors) ⇒ Product
constructor
A new instance of Product.
Methods inherited from AssocBinOpe
Methods inherited from BinOpe
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 |