Class: Caffeinate::MessageHandler

Inherits:
Delegator
  • Object
show all
Defined in:
lib/caffeinate/message_handler.rb

Overview

Delegates methods to a Caffeinate::Action class

Instance Method Summary collapse

Constructor Details

#initialize(action_class, action, message) ⇒ MessageHandler

:nodoc:



4
5
6
# File 'lib/caffeinate/message_handler.rb', line 4

def initialize(action_class, action, message) # :nodoc:
  @action_class, @action, @message = action_class, action, message
end

Instance Method Details

#__getobj__Object



8
9
10
# File 'lib/caffeinate/message_handler.rb', line 8

def __getobj__
  processed_action
end