Class: ConcreteOpts
Overview
Manages the command line interface for the ActionScript 3 Mock Framework Class generation tool.
Class Method Summary
collapse
Methods inherited from ToolOpts
add_mandatory, add_tail, create_parser, parse, version
Class Method Details
.add_optional(op, config) ⇒ Object
23
24
25
26
27
28
29
30
31
|
# File 'lib/shed/opts/concrete_opts.rb', line 23
def self.add_optional(op,config)
op.on("-i", "--interface FILE", String, "File path to ActionScript interface file.") do |value|
config[:interface] = value
end
op.on("-t", "--type STRING", String, "Optional output type, defaults to 'class'. Accepts 'class', 'mock4as' and 'imp'.") do |value|
config[:type] = value
end
end
|
.default_config ⇒ Object
17
18
19
20
21
|
# File 'lib/shed/opts/concrete_opts.rb', line 17
def self.default_config
dc = superclass.default_config
dc[:type] = 'class'
dc
end
|
.description ⇒ Object
13
14
15
|
# File 'lib/shed/opts/concrete_opts.rb', line 13
def self.description
"ActionScript Concrete Class Generator"
end
|
.name ⇒ Object
9
10
11
|
# File 'lib/shed/opts/concrete_opts.rb', line 9
def self.name
"as-concrete"
end
|