Units::Scale
Inherits Comparable < Units::Compatible < Reference < Object
Constructors
new(function_code : String | ScaleFunction::FunctionSelection, value : Number | String, unit : String, search : Mode = Mode::PrimaryCode)
SourceInstance methods
atoms(*args, **options)
Sourceatoms(*args, **options, &)
Sourcedepth
SourceAppends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
magnitude(scalar = scalar())
Sourcemode
Sourceroot_terms
Sourcescalar(magnitude = value)
Sourcespecial?(*args, **options)
Sourcespecial?(*args, **options, &)
Sourceterms(*args, **options)
Sourceterms(*args, **options, &)
Sourceto_s(io, mode : Mode = @mode) : Nil
Sourceunit
Sourcevalue
Source