Class: CommandLineOption

Inherits:
Object show all
Includes:
Assertions, Constants, Examples
Defined in:
app/models/command_line.rb

Overview

CommandLineScript

Defined Under Namespace

Modules: Assertions, Constants, Examples

Instance Method Summary collapse

Methods included from Assertions

#assert_post_conditions, #assert_pre_conditions

Constructor Details

#initialize(name, description = name, long_option = name, short_option = name[0]) ⇒ CommandLineOption

Returns a new instance of CommandLineOption.


131
132
133
134
135
136
# File 'app/models/command_line.rb', line 131

def initialize(name, description=name, long_option=name, short_option=name[0])
	@name=name
	@description=description
	@short_option=short_option
	@long_option=long_option
end