Module: Opt

Includes:
Constants
Defined in:
lib/opt.rb,
lib/opt/option.rb,
lib/opt/switch.rb,
lib/opt/command.rb,
lib/opt/program.rb,
lib/opt/version.rb

Defined Under Namespace

Modules: Constants, Types, VERSION Classes: Command, Option, Program, Switch

Constant Summary

Constants included from Constants

Constants::Identity, Constants::Inf, Constants::Infinity

Class Method Summary collapse

Class Method Details

.newObject



9
10
11
# File 'lib/opt.rb', line 9

def self.new
  Program.new.tap{|p| yield p if block_given? }
end