class Microtest::Formatter::TimeUnit

Defined in:

microtest/formatter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, full_name : String, magnitude : Int32 | Float64) #

[View source]

Instance Method Detail

def ==(other : TimeUnit) #

[View source]
def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def full_name : String #

[View source]
def integer_dividable?(seconds : Float64) #

[View source]
def magnitude : Float64 #

[View source]
def name : String #

[View source]
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>

[View source]