class Cosmo::ClassInstance
- Cosmo::ClassInstance
- Reference
- Object
Defined in:
cosmo/runtime/types/class_instance.crConstructors
Instance Method Summary
- #define_field(field_name : String, value : ValueType, token : Token | Nil, mutable = false, visibility : Visibility = Visibility::Private, typedef : Token | Nil = nil, not_redefining = false) : ValueType
- #define_method(method_name : String, value : Function, token : Token | Nil = nil, visibility : Visibility = Visibility::Private) : Function
- #get_field(field_name : String, token : Token | Nil = nil, include_private = true, include_protected = false, required = true) : ValueType
- #get_member(member_name : String, token : Token | Nil = nil, include_private = true, include_protected = false, method_required = false, field_required = true) : ValueType
- #get_method(method_name : String, token : Token | Nil = nil, include_private = true, include_protected = false, required = true) : Function | Nil
-
#name
Returns the class' name
-
#name_token
Returns the class' name token
-
#setup : Nil
Calls the construct method
Constructor Detail
Instance Method Detail
def define_field(field_name : String, value : ValueType, token : Token | Nil, mutable = false, visibility : Visibility = Visibility::Private, typedef : Token | Nil = nil, not_redefining = false) : ValueType
#
def define_method(method_name : String, value : Function, token : Token | Nil = nil, visibility : Visibility = Visibility::Private) : Function
#
def get_field(field_name : String, token : Token | Nil = nil, include_private = true, include_protected = false, required = true) : ValueType
#
def get_member(member_name : String, token : Token | Nil = nil, include_private = true, include_protected = false, method_required = false, field_required = true) : ValueType
#