Method: PGit::Project#initialize
- Defined in:
- lib/pgit/project.rb
#initialize(configuration = :no_config_given, proj = {}) {|_self| ... } ⇒ Project
Returns a new instance of Project.
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 |