class

Cruml::Entities::ClassInfo

Inherits Reference < Object

This consists of obtaining information about the class.

Constructors

new(name : String, type : Symbol)
Source

Instance methods

add_class_var(name : String, type : String) : Nil

Adds the name and the type of a class variable into the class vars array.

Source
add_extended_module(module_name : String) : Nil

Adds a module name to the list of extended modules.

Source
add_included_module(module_name : String) : Nil

Adds a module name to the list of included modules.

Source
add_instance_var(name : String, type : String) : Nil

Adds the name and the type of a instance variable into the instance vars array.

Source
add_method(method : Cruml::Entities::MethodInfo) : Nil

Adds a method into an array of methods.

Source
add_parent_class(parent_class_name : String, parent_type : Symbol = :class) : Nil

Adds a parent class into an array of parent classes. The parent_type parameter allows specifying the type without needing ClassList.

Source
class_vars

All class variables in a class.

Source
extended_modules

Extended modules in a class (class methods).

Source
included_modules

Included modules in a class (instance methods).

Source
instance_vars

All instance variables in a class.

Source
methods

All methods in a class.

Source
name

Class name

Source
parent_classes

Linked parent classes.

Source
type

Class type

Source