Class: SearchPath
- Inherits:
-
Object
- Object
- SearchPath
- 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) ⇒ SearchPath
constructor
A new instance of SearchPath.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
2 3 4 |
# File 'lib/simple-make/search_path.rb', line 2 def path @path end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
2 3 4 |
# File 'lib/simple-make/search_path.rb', line 2 def scope @scope end |