class Nya::Container

Overview

Object that can store other objects

Direct Known Subclasses

Defined in:

nya/object.cr

Constant Summary

NYA_REGISTERED = true

Object that can store other objects

PROPERTIES = {"children" => "Array(Object)"} of String => String

Object that can store other objects

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Nya::Object

ancestor_or_same?(u : U.class) forall U ancestor_or_same?, awake awake, backend backend, enabled : Bool enabled, enabled=(enabled : Bool) enabled=, enabled? : Bool enabled?, engine engine, id : String? id, id=(id : Nil | String) id=, matches_tag?(tag) matches_tag?, render(tag : String | Nil = nil) render, tag : String? tag, tag=(tag : Nil | String) tag=, update update

Class methods inherited from class Nya::Object

deserialize(xml, ctx : SerializationContext | Nil = nil) deserialize, transform_name(name) transform_name, xml_name xml_name

Constructor Detail

def self.new(children : Array(Nya::Object)) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.deserialize(xml, ctx : SerializationContext | Nil = nil) #

Object that can store other objects


[View source]
def self.transform_name(name) #

Object that can store other objects


def self.xml_name #

Returns XML compatible name of a type (see Nya::Serializable.translate_type)


Instance Method Detail

def awake #

Post-initializes object and its children

See Nya::Object#awake Remember that you MUST call super in overridden method in order to make this work properly


[View source]
def children : Array(Nya::Object) #

[View source]
def children=(children : Array(Nya::Object)) #

[View source]
def render(tag : String | Nil = nil) #

Renders object

Remember that you MUST call super in overridden method in order to make this work properly


[View source]
def update #

[View source]