# File lib/jpmobile/path_set.rb, line 26 def exists?(*args) find_all(*args).any? end
# File lib/jpmobile/path_set.rb, line 12 def find(path, prefix = nil, partial = false, details = {}, key = nil) template = find_all(path, prefix, partial, details, key).first raise MissingTemplate.new(self, "#{prefix}/#{path}", details, partial) unless template template end
# File lib/jpmobile/path_set.rb, line 18 def find_all(*args) each do |resolver| templates = resolver.find_all(*args) return templates unless templates.empty? end [] end
# File lib/jpmobile/path_set.rb, line 32 def typecast! each_with_index do |path, i| path = path.to_s if path.is_a?(Pathname) next unless path.is_a?(String) self[i] = Jpmobile::Resolver.new(path) end end