struct DotPrison::ArrayTable(T)

Overview

Consumes an actual Table array

Duplicate keys are sometimes used in the original .prison file, so when encountered, they are silently transformed to an array.

If an array is expected, any single values will be cast and will be consumable using this helper

Defined in:

dot_prison/array_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) #

Consumes an actual Table array

Duplicate keys are sometimes used in the original .prison file, so when encountered, they are silently transformed to an array.

If an array is expected, any single values will be cast and will be consumable using this helper


[View source]

Instance Method Detail

def [](i : Int32) : T #

[View source]
def each(&) #

[View source]
def size #

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

Consumes an actual Table array

Duplicate keys are sometimes used in the original .prison file, so when encountered, they are silently transformed to an array.

If an array is expected, any single values will be cast and will be consumable using this helper


def unconsumed : Array(String) #

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]