abstract class Registery::BaseNode

Direct Known Subclasses

Defined in:

gl_generator/registery/base_node.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(xml_node : Nil | XML::Node = nil) #

[View source]

Instance Method Detail

def <<(child_node) #

[View source]
abstract def build #

[View source]
def children : Array(Registery::BaseNode) #

[View source]
def children=(children : Array(Registery::BaseNode)) #

[View source]
def find_child_by_name(name : String, class_filter : BaseNode.class | Nil = nil) #

[View source]
def ignore? #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def parent : BaseNode | Nil #

[View source]
def parent=(parent : BaseNode | Nil) #

[View source]
def parse #

[View source]
def push(*children : BaseNode) #

[View source]
def root #

[View source]
def root? #

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def xml_node : XML::Node | Nil #

[View source]
def xml_node=(xml_node : XML::Node | Nil) #

[View source]