abstract class Object
Overview
Object
is the base type of all Crystal objects.
Defined in:
ifrit/core.crInstance Method Summary
-
#blank? : Bool
Returns if object is blank one - empty (or whitespaced) string, empty array, empty hash,
nil
orfalse
. -
#present?
Returns if object is not blank one - empty (or whitespaced) string, empty array, empty hash,
nil
orfalse
.
Macro Summary
-
singleton_delegate(*methods, to)
Defines class method delegation.
Instance Method Detail
def blank? : Bool
#
Returns if object is blank one - empty (or whitespaced) string, empty array, empty hash, nil
or false
.
def present?
#
Returns if object is not blank one - empty (or whitespaced) string, empty array, empty hash, nil
or false
.
Macro Detail
macro singleton_delegate(*methods, to)
#
Defines class method delegation.
class A
def self.method1
end
end
class B
singleton_delegate :method1, to: A
end