Class: UCD::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/ucd/parser.rb

Constant Summary collapse

KEYWORDS =
%w[
  class
  interface
  abstract static
  public protected private
  field method
  generalizes realizes
  directional bidirectional
  dependency association aggregation composition
]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(io, options = {}) ⇒ Object



7
8
9
# File 'lib/ucd/parser.rb', line 7

def self.parse(io, options={})
  new.parse(io, options)
end

Instance Method Details

#parse(io, options = {}) ⇒ Object



11
12
13
# File 'lib/ucd/parser.rb', line 11

def parse(io, options={})
  Node::Document.new(super)
end