class Novika::Entry

Overview

Represents a dictionary entry. Dictionary entries hold the value form.

Included Modules

Defined in:

novika/dict.cr

Constructors

Instance Method Summary

Instance methods inherited from module Novika::Schedulable

schedule(engine : Engine, stack : Block) schedule, schedule!(engine : Engine, stack : Block) schedule!

Constructor Detail

def self.new(form : Form, opener : Bool = false) #

[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 effect(*args, **options) #

[View source]
def effect(*args, **options, &) #

[View source]
def form : Novika::Form #

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

See Object#hash(hasher)


def on_open(engine : Engine) : Nil #

[View source]
def onto(*args, **options) #

[View source]
def onto(*args, **options, &) #

[View source]
def opener? : Bool #

[View source]
def schedule(engine : Engine, stack : Block) #
Description copied from module Novika::Schedulable

Safe #schedule. Schedules this form for opening (aka execution or evaluation) in engine, or opens it immediately (see ShouldOpenWhenScheduled).

See Engine to learn about the difference between #schedule, #on_open, and on_parent_open.


[View source]
def schedule!(engine : Engine, stack : Block) #
Description copied from module Novika::Schedulable

Unsafe #schedule. Use #schedule unless you have instantiated this form yourself, or know what you're doing.

Override this if you want to implement both safe #schedule and unsafe #schedule! for your form type: safe #schedule simply delegates to #schedule! unless it is explicitly overridden.

By default, simply pushes this form onto stack.


[View source]
def submit(form : Novika::Form) #

[View source]