module

Cruml::Parsers::ClassParser

Inherits Cruml::Parsers::RegexPatterns

Parses class-specific information from Crystal AST

Instance methods

determine_class_type(class_name : String, node : Crystal::ClassDef) : Symbol

Determines the class type (interface, abstract, or normal class)

Source
extract_generics(node : Crystal::ClassDef) : String | Nil

Extracts generic type parameters from a class definition

Source
interface?(name : String) : Bool

Determines if a class name represents an interface

Source
parse_extends(body_string : String) : Array(String)

Parses extend statements from the class body

Source
parse_includes(body_string : String) : Array(String)

Parses include statements from the class body

Source