lib/scrapple/file_system_bag.rb
# Get the text content of a file as string.
Get the text content of a file as string.
Get the text content of a file as string .
def content(path)
      path = rewrite(path)
      raise Bag::PathNotFound.new unless exist?(path)
      if directory?(path)
        ""
      else
        File.read(@root + path)
      end
    end
def content ( path ) path = rewrite ( path ) raise Bag :: PathNotFound . new unless exist? ( path ) if directory? ( path ) "" else File . read ( @root + path ) end end
Get the text content of a file as string.
Get the text content of a file as string .
path
<not_specific>