Class: Canoe::Builder

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

Overview

Main class for building a canoe project

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



9
10
11
12
# File 'lib/canoe.rb', line 9

def initialize
  options = %w[new add build generate make run dep clean version help update test]
  @cmd = CmdParser.new options
end

Instance Method Details

#parse(args) ⇒ Object



14
15
16
# File 'lib/canoe.rb', line 14

def parse(args)
  @cmd.parse args
end