Class: Classroom::Commands::Version
- Inherits:
-
Object
- Object
- Classroom::Commands::Version
- Defined in:
- lib/classroom/commands/version.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Version
constructor
A new instance of Version.
Constructor Details
#initialize(options) ⇒ Version
Returns a new instance of Version.
4 5 6 |
# File 'lib/classroom/commands/version.rb', line 4 def initialize puts "Hello from Version !!!" end |
Class Method Details
.optsparser ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/classroom/commands/version.rb', line 8 def self.optsparser OptionParser.new do |opts| opts. = "Usage: classroom foo [options]" opts.on("-v", "--[no-]verbose", "Run verbosely") do |v| [:verbose] = v end end end |