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 array_type_id : String #

Seems to be used on some newer stuff, probably don't care about it


[View source]
def array_type_id=(v : String) #

Seems to be used on some newer stuff, probably don't care about it


[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]
def unconsumed_tree : Array(Tuple(String, String)) #

Returns a recursive array of the {class name, key} that have not been consumed

Uses the Consumer::HANDLED_VARIABLES constant, so custom Consumer::consume macro use may not work

Similar to #unconsumed, but travels the whole tree