Method: GemBench::Player#initialize
- Defined in:
- lib/gem_bench/player.rb
#initialize(options = {}) ⇒ Player
Returns a new instance of Player.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/gem_bench/player.rb', line 10 def initialize( = {}) @name = [:name] @version = [:version] @exclude_file_pattern = [:exclude_file_pattern] @state = nil @stats = [] @file_path_glob = GemBench::PATH_GLOB.call(@name) # Used to find the line of the Gemfile which creates the primary dependency on this gem @gemfile_regex = GemBench::DEPENDENCY_REGEX_PROC.call(@name) @checked = false end |