Class: Docscribe::Types::Yard::Parser
- Inherits:
-
Object
- Object
- Docscribe::Types::Yard::Parser
- Defined in:
- lib/docscribe/types/yard/parser.rb
Overview
Parses YARD type strings into an AST
Instance Method Summary collapse
Constructor Details
#initialize(string) ⇒ void
23 24 25 26 |
# File 'lib/docscribe/types/yard/parser.rb', line 23 def initialize(string) @s = string.strip @i = 0 end |
Instance Method Details
#parse ⇒ Docscribe::Types::Yard::node
29 30 31 32 33 34 |
# File 'lib/docscribe/types/yard/parser.rb', line 29 def parse skip_space node = parse_union skip_space node end |