Class: SearchPath

Inherits:
Object
  • Object
show all
Includes:
PathHelper
Defined in:
lib/simple-make/search_path.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PathHelper

#get_path

Constructor Details

#initialize(map, path_mode = :absolute) ⇒ SearchPath

Returns a new instance of SearchPath.



7
8
9
10
11
12
# File 'lib/simple-make/search_path.rb', line 7

def initialize map, path_mode = :absolute
  raise wrong_format_msg(map) if !(map.is_a? Hash) or map[:path].nil?

  @path = get_path(path_mode, map[:path])
  @scope = map[:scope] || :compile
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/simple-make/search_path.rb', line 5

def path
  @path
end

#scopeObject (readonly)

Returns the value of attribute scope.



5
6
7
# File 'lib/simple-make/search_path.rb', line 5

def scope
  @scope
end