Class: RVC::RawOptionParser

Inherits:
Object
  • Object
show all
Defined in:
lib/rvc/option_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd) ⇒ RawOptionParser

Returns a new instance of RawOptionParser.



168
169
170
171
# File 'lib/rvc/option_parser.rb', line 168

def initialize cmd
  @cmd = cmd
  @applicable = []
end

Instance Attribute Details

#applicableObject (readonly)

Returns the value of attribute applicable.



166
167
168
# File 'lib/rvc/option_parser.rb', line 166

def applicable
  @applicable
end

Instance Method Details

#educateObject



181
182
183
# File 'lib/rvc/option_parser.rb', line 181

def educate
  # XXX
end

#has_options?Boolean

Returns:

  • (Boolean)


177
178
179
# File 'lib/rvc/option_parser.rb', line 177

def has_options?
  false
end

#parse(args) ⇒ Object



173
174
175
# File 'lib/rvc/option_parser.rb', line 173

def parse args
  [args, {}]
end