Class: AsyncMethods::MethodSignature

Inherits:
Object
  • Object
show all
Defined in:
lib/async_methods/async_methods.rb

Overview

This class is used to keep track of methods being called.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject (readonly)

Returns the value of attribute method.



50
51
52
# File 'lib/async_methods/async_methods.rb', line 50

def method
  @method
end

#objectObject (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

Returns:

  • (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