abstract class School::Relationship(A, B)

Overview

A fact that asserts a relationship.

e.g.

Defined in:

school/fact.cr

Constructors

Instance Method Summary

Instance methods inherited from class School::Fact

==(other : self) ==, hash(hasher) hash, to_s(io : IO) to_s

Constructor methods inherited from class School::Fact

assert(fact : Fact) : Fact assert, retract(fact : Fact) : Fact retract

Class methods inherited from class School::Fact

clear! clear!, facts facts

Constructor Detail

def self.new(a : A, b : B) #

[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 a #

[View source]
def b #

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

See Object#hash(hasher)