struct DotPrison::IndexedTable(T)

Overview

A consumer for Tables that are indexed from 0

Starting at "[i 0]" and going up to (size-1) "[i size-1]"

Defined in:

dot_prison/indexed_table.cr

Constructors

Instance Method Summary

Instance methods inherited from struct DotPrison::Consumer

initialize initialize, table : DotPrison::Table table

Constructor methods inherited from struct DotPrison::Consumer

new new

Instance methods inherited from class Object

to_prison to_prison

Constructor Detail

def self.new(table : DotPrison::Table) #

A consumer for Tables that are indexed from 0

Starting at "[i 0]" and going up to (size-1) "[i size-1]"


[View source]

Instance Method Detail

def [](i : Int32) : T #

[View source]
def []?(i : Int32) : T | Nil #

[View source]
def each(&) #

[View source]
def size : Int32 #

[View source]
def size=(v : Int) #

[View source]
def table : DotPrison::Table #

A consumer for Tables that are indexed from 0

Starting at "[i 0]" and going up to (size-1) "[i size-1]"


def unconsumed #

Keys for the associated table that have not been consumed

This may be because they have not been implemented yet, they may have an unknown purpose, or could be part of an unsupported mod


[View source]