Class: Classroom::Commands::Foo

Inherits:
Object
  • Object
show all
Defined in:
lib/classroom/commands/foo.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Foo

Returns a new instance of Foo.



4
5
6
# File 'lib/classroom/commands/foo.rb', line 4

def initialize options
    puts "Hello from FOOOOHOOOO"
end

Class Method Details

.optsparserObject



8
9
10
11
12
13
14
15
16
# File 'lib/classroom/commands/foo.rb', line 8

def self.optsparser
    OptionParser.new do |opts|
        opts.banner = "Usage: classroom foo [options]"
        
        opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
            options[:verbose] = v
        end
    end
end