class Microtest::PowerAssert::ValueWrapper(T)

Overview

There is no "Object" class in crystal, so we have to use this wrapper

Defined in:

microtest/power_assert.cr

Constructors

Instance Method Summary

Instance methods inherited from class Microtest::PowerAssert::Value

boolean? : Bool boolean?, inspected : String inspected, not_false? : Bool not_false?, simplified_value(max_length : Int32) : String simplified_value, truthy? : Bool truthy?

Constructor Detail

def self.new(value : T) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def boolean? : Bool #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def inspect(io) #

[View source]
def inspected : String #

[View source]
def not_false? : Bool #

[View source]
def simplified_value(max_length : Int32) : String #

[View source]
def truthy? : Bool #

[View source]
def value : T #

[View source]