Class: Commands::Version
- Inherits:
-
Object
- Object
- Commands::Version
- Defined in:
- lib/commands/version.rb
Instance Method Summary collapse
-
#options ⇒ Object
holds the options that were passed you can set any initial defaults here.
- #register(opts, global_options) ⇒ Object
-
#required_options ⇒ Object
required options.
- #run(global_options) ⇒ Object
Instance Method Details
#options ⇒ Object
holds the options that were passed you can set any initial defaults here
13 14 15 16 |
# File 'lib/commands/version.rb', line 13 def @options ||= { } end |
#register(opts, global_options) ⇒ Object
24 25 26 27 |
# File 'lib/commands/version.rb', line 24 def register(opts, ) opts. = "Usage: version" opts.description = "Returns the version only." end |
#required_options ⇒ Object
required options
19 20 21 22 |
# File 'lib/commands/version.rb', line 19 def @required_options ||= Set.new [ ] end |