Class: SearchPath
- Inherits:
-
Object
- Object
- SearchPath
- Includes:
- PathHelper
- Defined in:
- lib/simple-make/search_path.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(map, path_mode = :absolute) ⇒ SearchPath
constructor
A new instance of SearchPath.
Methods included from PathHelper
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/simple-make/search_path.rb', line 5 def path @path end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
5 6 7 |
# File 'lib/simple-make/search_path.rb', line 5 def scope @scope end |