Sha256: 22d6904a2969e0463c80619807aac74c9b824ff6879b9194364f824b12cdfbed
Contents?: true
Size: 321 Bytes
Versions: 22
Compression:
Stored size: 321 Bytes
Contents
module Pansophy module Local class File include Adamantium::Flat attr_reader :pathname def initialize(path) @pathname = Pathname.new(path) end def body return nil unless @pathname.exist? ::File.read(@pathname) end memoize :body end end end
Version data entries
22 entries across 22 versions & 1 rubygems