Top Level Namespace

Defined Under Namespace

Classes: Project

Instance Method Summary collapse

Instance Method Details

#project(name = File.basename(Dir.getwd)) {|p| ... } ⇒ Object

Yields:

  • (p)


5
6
7
8
9
10
11
12
13
# File 'lib/rmake.rb', line 5

def project name = File.basename(Dir.getwd)
    if $projects.has_key?(name)
        puts "project's name(#{name}) is exists"
        return
    end
    p = Project.new(target: name)
    yield p
    $projects[name] = p
end