Class: CabezaDeTermo::JsonSpec::ObjectMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/cabeza-de-termo/json-spec/metaprogramming/object-method.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, method_name) ⇒ ObjectMethod

Returns a new instance of ObjectMethod.



4
5
6
7
# File 'lib/cabeza-de-termo/json-spec/metaprogramming/object-method.rb', line 4

def initialize(object, method_name)
	@object = object
	@method_name = method_name
end

Instance Method Details

#call(*args, &block) ⇒ Object



9
10
11
# File 'lib/cabeza-de-termo/json-spec/metaprogramming/object-method.rb', line 9

def call(*args, &block)
	MessageSend.new(@object, @method_name, *args, &block).call
end