abstract class Object

Overview

Object is the base type of all Crystal objects.

Defined in:

ifrit/core.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def blank? : Bool #

Returns if object is blank one - empty (or whitespaced) string, empty array, empty hash, nil or false.


[View source]
def present? #

Returns if object is not blank one - empty (or whitespaced) string, empty array, empty hash, nil or false.


[View source]

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

[View source]