Class: Climate::Parser

Inherits:
Object
  • Object
show all
Includes:
ParsingMethods
Defined in:
lib/climate/parser.rb

Instance Method Summary collapse

Methods included from ParsingMethods

#arg, #check_arguments, #cli_arguments, #cli_options, #has_arguments?, #has_options?, #help_banner, #opt, #parse, #stop_on, #trollop_parser

Constructor Details

#initialize(&block) ⇒ Parser

Returns a new instance of Parser.



91
92
93
# File 'lib/climate/parser.rb', line 91

def initialize(&block)
  instance_eval(&block) if block_given?
end