Module: Purgeable::HttpResource::ClassMethods

Defined in:
lib/purgeable/http_resource.rb

Instance Method Summary collapse

Instance Method Details

#http_purge(method = nil, &block) ⇒ Object



29
30
31
# File 'lib/purgeable/http_resource.rb', line 29

def http_purge(method = nil, &block)
  (@purge_generators ||= []) << (block_given? ? block : method)
end