Object
# File lib/deep_test/option.rb, line 5 def initialize(name, type, default) @name, @type, @default = name, type, default end
# File lib/deep_test/option.rb, line 9 def from_command_line(command_line) command_line =~ /--#{name} (\S+)(\s|$)/ @type.from_string($1) if $1 end
# File lib/deep_test/option.rb, line 14 def to_command_line(value) "--#{name} #{@type.to_string(value)}" if value && value != default end
[Validate]
Generated with the Darkfish Rdoc Generator 2.