class Objects::MError

Defined in:

objects.cr

Constructors

Instance Method Summary

Instance methods inherited from class Objects::MObject

error? : Bool error?, if_not_error(& : MObject -> MObject | Nil) : MObject | Nil if_not_error, inspect : String inspect, truthy? : Bool truthy?, type_desc : String type_desc

Instance methods inherited from class Object

also(& : self | Nil -> _) : self also, or_else(alternative) or_else

Constructor Detail

def self.new(message : String) #

[View source]

Instance Method Detail

def if_not_error(& : MObject -> MObject | Nil) : MObject | Nil #

[View source]
def inspect : String #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def message : String #

[View source]
def to_s(io) #

[View source]