Module: UberS3::Operation::Object::HttpCache

Included in:
UberS3::Object
Defined in:
lib/uber-s3/operation/object/http_cache.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/uber-s3/operation/object/http_cache.rb', line 4

def self.included(base)
  # TODO: .. strange behaviour.. can't override these methods in below modules.
  # requires some metaprogramming debugging
  # base.instance_eval do
  #   attr_accessor :cache_control, :expires, :pragma, :ttl
  # end
  
  base.send :extend,  ClassMethods
  base.send :include, InstanceMethods   
end