struct

CRDoc::Resolver::ParsedQuery

Inherits Struct < Value < Object

A query split into its type part and member part.

Constructors

new(type_name : Nil | String, separator : CRDoc::Resolver::Separator, member : String, top_level : Bool = false)
Source
parse(input : String) : ParsedQuery
Source

Instance methods

empty?

True when the query has nothing to look up, such as '', # or String..

Source
member

Member name or glob. For Separator::None this is the last path segment.

Source
separator
Source
top_level?

True when a leading :: limits the member to the top level, as in ::puts.

Source
type_name

Type or constant path with generic parameters removed, or nil when the query names no type.

Source