Class: ReliableMsg::Selector::Constant

Inherits:
Deferred
  • Object
show all
Defined in:
lib/reliable-msg/selector.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Deferred

#coerce

Constructor Details

#initialize(value) ⇒ Constant

Returns a new instance of Constant.



93
94
95
# File 'lib/reliable-msg/selector.rb', line 93

def initialize value
    @value = value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object



97
98
99
100
101
102
103
# File 'lib/reliable-msg/selector.rb', line 97

def method_missing symbol, *args
    if symbol == :__evaluate__
        @value
    else
        Deferred.new self, symbol, args
    end
end