Sha256: d1298c68210ec6aaa76a3be0ab427fc43cb62167b8b15de5296cc87db646a03c
Contents?: true
Size: 328 Bytes
Versions: 18
Compression:
Stored size: 328 Bytes
Contents
class SearchConfPath def initialize(dir, home) @dir = dir @home = home search_conf_path() end def search_conf_path() while @dir != @home if File.exists?(File.join(@dir, ".qiita.conf")) return @dir else @dir = @dir.match(/(.+)\//)[1] end end return @dir end end
Version data entries
18 entries across 18 versions & 1 rubygems