Class: ReliableMsg::Selector::Constant
- Defined in:
- lib/reliable-msg/selector.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(value) ⇒ Constant
constructor
A new instance of Constant.
- #method_missing(symbol, *args) ⇒ Object
Methods inherited from Deferred
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 |