Method: RBS::Collection::Config.find_config_path
- Defined in:
- lib/rbs/collection/config.rb
.find_config_path ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rbs/collection/config.rb', line 21 def self.find_config_path current = Pathname.pwd loop do config_path = current.join(PATH) return config_path if config_path.exist? current = current.join('..') return nil if current.root? end end |