Parent

Methods

Moneta::Xattr

Public Class Methods

new(options = {}) click to toggle source
# File lib/moneta/xattr.rb, line 13
def initialize(options = {})
  file = options[:file]
  @hash = ::Xattr.new(file)
  FileUtils.mkdir_p(::File.dirname(file))
  FileUtils.touch(file)
  unless options[:skip_expires]
    @expiration = Moneta::Xattr.new(:file => "#{file}_expiration", :skip_expires => true)
    self.extend(Expires)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.