class

PythonParser::ImportModel

Inherits Reference < Object

Class to model annotations — kept for API stability even though this rewrite no longer populates it (Flask doesn't read @import_statements directly).

Constructors

new(name : String, path : String | Nil, as_name : String | Nil)
Source

Instance methods

as_name
Source
as_name=(as_name : String | Nil)
Source
name
Source
name=(name : String)
Source
path
Source
path=(path : String | Nil)
Source
to_s

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.

Source