class PowerProduct(T)
- PowerProduct(T)
- Reference
- Object
Defined in:
power_product.crConstructors
- .new(powers : Hash(T, Int32), negative : Bool = false)
- .new(powers : Hash(T, Rational), negative : Bool = false)
Class Method Summary
Instance Method Summary
- #*(ps : PowerProduct(U)) : PowerProduct(T | U) forall U
- #<<(base : T, exponent : Rational)
- #<<(powers_product : PowerProduct(T))
- #==(ps : PowerProduct(T))
- #bases
- #exponents
- #inverse
- #negate!
- #negative?
- #powers : Hash(T, Rational)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #wrap_base(type : U.class) forall U
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
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>