Sha256: 1e380b0334f66cadddad3ab1aa9d0429484c730c558440f88b625b62923a345b
Contents?: true
Size: 305 Bytes
Versions: 5
Compression:
Stored size: 305 Bytes
Contents
class WhiskeyDisk class Config module ScopeHelper def repository_depth(data, depth = 0) raise 'no repository found' unless data.respond_to?(:has_key?) return depth if data.has_key?('repository') repository_depth(data.values.first, depth + 1) end end end end
Version data entries
5 entries across 5 versions & 3 rubygems