class InfluxReporter::LineCache
@api private
Constants
- CACHE
Public Class Methods
all(path)
click to toggle source
# File lib/influx_reporter/line_cache.rb, line 8 def self.all(path) CACHE[path] ||= begin File.readlines(path) rescue [] end end
find(path, line)
click to toggle source
# File lib/influx_reporter/line_cache.rb, line 16 def self.find(path, line) return nil if line < 1 all(path)[line - 1] end