abstract class School::Fact

Overview

A fact is a statement that asserts a truth.

Direct Known Subclasses

Defined in:

school/fact.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.assert(fact : Fact) : Fact #

Asserts a fact.


[View source]
def self.retract(fact : Fact) : Fact #

Retracts a fact.


[View source]

Class Method Detail

def self.clear! #

[View source]
def self.facts #

Returns the facts.


[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 hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def to_s(io : IO) #

Appends a short String representation of this object.


[View source]