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, #cli_arguments, #cli_options, #conflicting_options, #conflicts, #dependent_options, #depends, #has_argument?, #has_arguments?, #has_multi_argument?, #has_options?, #has_required_argument?, #opt, #parse, #parse_arguments, #stop_on, #trollop_parser

Constructor Details

#initialize(&block) ⇒ Parser

Returns a new instance of Parser.



238
239
240
# File 'lib/climate/parser.rb', line 238

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