Class: SearchPath

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(map) ⇒ SearchPath

Returns a new instance of SearchPath.



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

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

  @path = File.absolute_path(map[:path])
  @scope = map[:scope] || :compile
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



2
3
4
# File 'lib/simple-make/search_path.rb', line 2

def path
  @path
end

#scopeObject (readonly)

Returns the value of attribute scope.



2
3
4
# File 'lib/simple-make/search_path.rb', line 2

def scope
  @scope
end