Class: Qspec::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/qspec/helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Helper

Returns a new instance of Helper.



3
4
5
# File 'lib/qspec/helper.rb', line 3

def initialize(argv)
  @argv = argv
end

Instance Method Details

#serveObject



7
8
9
10
11
12
13
# File 'lib/qspec/helper.rb', line 7

def serve
  case @argv.last
  when 'init'
    puts "Creating template"
    Config.create_template
  end
end