Method: CodeStats::Project#initialize

Defined in:
lib/code_stats/project.rb

#initialize(path, options = {}) ⇒ Project

Returns a new instance of Project.



9
10
11
12
13
14
15
# File 'lib/code_stats/project.rb', line 9

def initialize path, options = {}
  @path, @name = path, path.to_entry.name
  options.validate_options! *AVAILIABLE_OPTIONS
  @spec_filter = options.include?(:spec_filter) ? options[:spec_filter] : DEFAUL_SPEC_FILTER
  @skip_filter = options.include?(:skip_filter) ? options[:skip_filter] : DEFAUL_SKIP_FILTER
  clear
end