class GemMonitor::Reader
Attributes
file_path[RW]
Public Class Methods
new(args = {})
click to toggle source
# File lib/gem_monitor/reader.rb, line 6 def initialize args = {} self.file_path = args.fetch(:file_path, nil) end
Public Instance Methods
read()
click to toggle source
# File lib/gem_monitor/reader.rb, line 10 def read begin File.read file_path rescue => e raise GemMonitor::Error.new("Could not find file #{file_path}.") end end