Class: Jasmine::PathMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/jasmine/path_mapper.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ PathMapper

Returns a new instance of PathMapper.



3
4
5
# File 'lib/jasmine/path_mapper.rb', line 3

def initialize(config)
  @config = config
end

Instance Method Details

#map_boot_paths(paths) ⇒ Object



15
16
17
# File 'lib/jasmine/path_mapper.rb', line 15

def map_boot_paths(paths)
  map(paths, @config.boot_dir, @config.boot_path)
end

#map_jasmine_paths(paths) ⇒ Object



23
24
25
# File 'lib/jasmine/path_mapper.rb', line 23

def map_jasmine_paths(paths)
  map(paths, @config.jasmine_dir, @config.jasmine_path)
end

#map_runner_boot_paths(paths) ⇒ Object



19
20
21
# File 'lib/jasmine/path_mapper.rb', line 19

def map_runner_boot_paths(paths)
  map(paths, @config.runner_boot_dir, @config.runner_boot_path)
end

#map_spec_paths(paths) ⇒ Object



11
12
13
# File 'lib/jasmine/path_mapper.rb', line 11

def map_spec_paths(paths)
  map(paths, @config.spec_dir, @config.spec_path)
end

#map_src_paths(paths) ⇒ Object



7
8
9
# File 'lib/jasmine/path_mapper.rb', line 7

def map_src_paths(paths)
  map(paths, @config.src_dir, @config.src_path)
end