Class: Classroom::Commands::Bar
- Inherits:
-
Object
- Object
- Classroom::Commands::Bar
- Defined in:
- lib/classroom/commands/bar.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Bar
constructor
A new instance of Bar.
Constructor Details
#initialize(options) ⇒ Bar
Returns a new instance of Bar.
4 5 6 |
# File 'lib/classroom/commands/bar.rb', line 4 def initialize puts "Hello from BARAARARARARARRA" end |
Class Method Details
.optsparser ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/classroom/commands/bar.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 |