Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAmbiguousError ¶
IsAmbiguousError reports whether err indicates multiple model matches.
Types ¶
type Summary ¶
type Summary struct {
ClassName string
ParentClass string
RelPath string
TableName string
Concerns []string
Assocs []string
Valids []string
Scopes []string
Callbacks []string
Enums []string
Delegates []string
}
Summary holds the extracted model structure.
func Parse ¶
Parse reads a model file and returns its structural summary. NOTE: This function relies heavily on regular expressions to parse Ruby code. This approach is inherently fragile and may not correctly parse all Ruby code styles or complex constructs. It is a known trade-off for simplicity and avoiding a full Ruby parser dependency.
Click to show internal directories.
Click to hide internal directories.