struct Novika::Word

Overview

Words open entries they're assigned to in the dictionary of their enclosing block.

Included Modules

Defined in:

novika/forms/words.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Novika::Form

a(type : T.class) : T forall T a, desc(io : IO)
desc : String
desc
, die(details : String) die, effect(io)
effect
effect
, on_open(engine : Engine) : self on_open, on_parent_open(engine : Engine) : self on_parent_open, onto(block : Block) : self onto, sel(a, b) sel, to_quote : Quote to_quote

Instance methods inherited from module Novika::Schedulable

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

Constructor Detail

def self.new(id : String) #

Class Method Detail

def self.typedesc #

Instance Method Detail

def ==(other : self) #

def desc(io : IO) #
Description copied from module Novika::Form

Appends a string description of this form to io.


def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


def id : String #

Returns the underlying string id.


def on_parent_open(engine : Engine) : self #
Description copied from module Novika::Form

Reacts to this form's enclosing block being opened with engine.


def private? #

Returns whether this word is private (by convention).


def to_quoted_word #

Adds a level of quoting so this word becomes a quoted word.


def to_s(io) #