Sha256: 0210d3b0f56bf17426afef45521b47c6a48a26fc3d6ade3083f6aeb511e87053
Contents?: true
Size: 456 Bytes
Versions: 2
Compression:
Stored size: 456 Bytes
Contents
require 'prometheus/client/helper/entry_parser' module Prometheus module Client module Helper class PlainFile include EntryParser attr_reader :filepath def initialize(filepath) @filepath = filepath @data = File.read(filepath, mode: 'rb') end def slice(*args) @data.slice(*args) end def size @data.length end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prometheus-client-mmap-0.7.0.beta34 | lib/prometheus/client/helper/plain_file.rb |
prometheus-client-mmap-0.7.0.beta33 | lib/prometheus/client/helper/plain_file.rb |