class

PowerProduct(T)

Inherits Reference < Object

Constructors

new(powers : Hash(T, Int32), negative : Bool = false)
Source
new(powers : Hash(T, Rational), negative : Bool = false)
Source

Class methods

unit(negative = false)
Source

Instance methods

*(ps : PowerProduct(U)) : PowerProduct(T | U) forall U
Source
<<(base : T, exponent : Rational)
Source
<<(powers_product : PowerProduct(T))
Source
==(ps : PowerProduct(T))
Source
bases
Source
exponents
Source
inverse
Source
negate!
Source
negative?
Source
powers
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
wrap_base(type : U.class) forall U
Source