Class: AsyncMethods::MethodSignature
- Inherits:
-
Object
- Object
- AsyncMethods::MethodSignature
- Defined in:
- lib/async_methods/async_methods.rb
Overview
This class is used to keep track of methods being called.
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #eql?(sig) ⇒ Boolean
-
#initialize(obj, method) ⇒ MethodSignature
constructor
A new instance of MethodSignature.
Constructor Details
#initialize(obj, method) ⇒ MethodSignature
Returns a new instance of MethodSignature.
52 53 54 55 |
# File 'lib/async_methods/async_methods.rb', line 52 def initialize (obj, method) @object = obj @method = method.to_sym end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
50 51 52 |
# File 'lib/async_methods/async_methods.rb', line 50 def method @method end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
50 51 52 |
# File 'lib/async_methods/async_methods.rb', line 50 def object @object end |
Instance Method Details
#eql?(sig) ⇒ Boolean
57 58 59 |
# File 'lib/async_methods/async_methods.rb', line 57 def eql? (sig) sig.kind_of(MethodSignature) && sig.object == @object && sig.method == @method end |