Sha256: 88626f0d4db85c04d64c4c44c1868922bc232a8ab5782d404ca001506186af2b
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
class SearchPath attr_reader :path, :scope 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 private 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple-make-0.0.1 | lib/simple-make/search_path.rb |