Class: TorqueBox::Caching::Cache::Handler

Inherits:
Object
  • Object
show all
Includes:
Java::OrgProjectoddWunderbossCachingNotifications::Handler
Defined in:
caching/lib/torquebox/caching/cache.rb

Instance Method Summary (collapse)

Constructor Details

- (Handler) initialize(block)

Returns a new instance of Handler



280
281
282
# File 'caching/lib/torquebox/caching/cache.rb', line 280

def initialize(block)
  @block = block
end

Instance Method Details

- (Object) handle(event)



284
285
286
# File 'caching/lib/torquebox/caching/cache.rb', line 284

def handle(event)
  @block.call(event)
end