Module: TomParse

Defined in:
lib/tomparse.rb,
lib/tomparse/option.rb,
lib/tomparse/parser.rb,
lib/tomparse/argument.rb,
lib/tomparse/parse_error.rb

Defined Under Namespace

Classes: Argument, Option, ParseError, Parser, TomDoc

Class Method Summary collapse

Class Method Details

.parse(comment, parse_options = {}) ⇒ Object

Main interface to parser.

Parameters:

  • comment

    code comment [String]



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

def self.parse(comment, parse_options={})
  TomDoc.new(comment, parse_options)
end