class SearchPath
Attributes
path[R]
scope[R]
Public Class Methods
new(map, path_mode = :absolute)
click to toggle source
# 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
Private Instance Methods
wrong_format_msg(map)
click to toggle source
# File lib/simple-make/search_path.rb, line 15 def wrong_format_msg(map) "#{map.inspect} is not a map, please present dependencies in format {path: <include_path>, type: <compile/test/prod(external is default value)>}" end