Sha256: 7f2a6a0c2b6854e852d54a2f8e89364315624c570c74aae62e4ddf6a7248de24
Contents?: true
Size: 438 Bytes
Versions: 18
Compression:
Stored size: 438 Bytes
Contents
module Approvals class ApprovalError < Exception attr_accessor :received_path, :approved_path def received_exists? received_path && File.exist?(received_path) end def received_text received_exists? && IO.read(received_path) end def approved_exists? approved_path && File.exist?(approved_path) end def approved_text approved_exists? && IO.read(approved_path) end end end
Version data entries
18 entries across 18 versions & 2 rubygems