class Nya::Container
- Nya::Container
- Nya::Object
- Reference
- Object
Overview
Object that can store other objects
Direct Known Subclasses
Defined in:
nya/object.crConstant 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
-
.deserialize(xml, ctx : SerializationContext | Nil = nil)
Object that can store other objects
-
.transform_name(name)
Object that can store other objects
-
.xml_name
Returns XML compatible name of a type (see
Nya::Serializable.translate_type
)
Instance Method Summary
-
#awake
Post-initializes object and its children
- #children : Array(Nya::Object)
- #children=(children : Array(Nya::Object))
-
#render(tag : String | Nil = nil)
Renders object
- #update
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
Class Method Detail
def self.deserialize(xml, ctx : SerializationContext | Nil = nil)
#
Object that can store other objects
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
def render(tag : String | Nil = nil)
#
Renders object
Remember that you MUST call super in overridden method in order to make this work properly