Class: RCoLi::ParsedArgs
- Inherits:
-
Object
- Object
- RCoLi::ParsedArgs
- Defined in:
- lib/rcoli/model.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#command ⇒ Object
Returns the value of attribute command.
-
#global_options ⇒ Object
readonly
Returns the value of attribute global_options.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ ParsedArgs
constructor
A new instance of ParsedArgs.
- #no_command? ⇒ Boolean
Constructor Details
#initialize ⇒ ParsedArgs
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
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
249 250 251 |
# File 'lib/rcoli/model.rb', line 249 def arguments @arguments end |
#command ⇒ Object
Returns the value of attribute command.
251 252 253 |
# File 'lib/rcoli/model.rb', line 251 def command @command end |
#global_options ⇒ Object (readonly)
Returns the value of attribute global_options.
247 248 249 |
# File 'lib/rcoli/model.rb', line 247 def @global_options end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
248 249 250 |
# File 'lib/rcoli/model.rb', line 248 def @options end |
Instance Method Details
#no_command? ⇒ Boolean
259 260 261 |
# File 'lib/rcoli/model.rb', line 259 def no_command? return @command.nil? end |