Method: PGit::Project#initialize

Defined in:
lib/pgit/project.rb

#initialize(configuration = :no_config_given, proj = {}) {|_self| ... } ⇒ Project

Returns a new instance of Project.

Yields:

  • (_self)

Yield Parameters:

  • _self (PGit::Project)

    the object that the method was called on



15
16
17
18
19
20
21
22
23
# File 'lib/pgit/project.rb', line 15

def initialize(configuration=:no_config_given,
               proj={},
               &block)
  yield self if block_given?
  @query_hash = proj
  @configuration = configuration
  @cmds = proj.fetch('commands') { Array.new }
  set_default_queries
end