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

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

def effect(*args, **options, &) #

def form : Novika::Form #

def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def on_open(engine : Engine) : Nil #

def onto(*args, **options) #

def onto(*args, **options, &) #

def opener? : Bool #

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.


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.


def submit(form : Novika::Form) #