Class: RCoLi::ParsedArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/rcoli/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParsedArgs

Returns a new instance of ParsedArgs.



253
254
255
256
257
# File 'lib/rcoli/model.rb', line 253

def initialize
  @global_options = {}
  @options = {}
  @arguments = []
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



249
250
251
# File 'lib/rcoli/model.rb', line 249

def arguments
  @arguments
end

#commandObject

Returns the value of attribute command.



251
252
253
# File 'lib/rcoli/model.rb', line 251

def command
  @command
end

#global_optionsObject (readonly)

Returns the value of attribute global_options.



247
248
249
# File 'lib/rcoli/model.rb', line 247

def global_options
  @global_options
end

#optionsObject (readonly)

Returns the value of attribute options.



248
249
250
# File 'lib/rcoli/model.rb', line 248

def options
  @options
end

Instance Method Details

#no_command?Boolean

Returns:

  • (Boolean)


259
260
261
# File 'lib/rcoli/model.rb', line 259

def no_command?
  return @command.nil?
end