abstract struct Struct

Overview

Defines class method delegation.

struct A
  def self.method1
  end
end

struct B
  singleton_delegate :method1, to: A
end

Direct Known Subclasses

Defined in:

ifrit/core.cr

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? present?

Instance Method Detail

def blank? #

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) #

[View source]