class Pansophy::Local::File
Attributes
pathname[R]
Public Class Methods
new(path)
click to toggle source
# File lib/pansophy/local/file.rb, line 8 def initialize(path) @pathname = Pathname.new(path) end
Public Instance Methods
body()
click to toggle source
# File lib/pansophy/local/file.rb, line 12 def body return nil unless @pathname.exist? ::File.read(@pathname) end