Method: BeComputedByFunctionMatcher#function_call

Defined in:
lib/extensions/mspec/mspec/matchers/be_computed_by_function.rb

#function_callObject



18
19
20
21
22
23
24
# File 'lib/extensions/mspec/mspec/matchers/be_computed_by_function.rb', line 18

def function_call
  function_call = "#{@function}"
  unless @arguments.empty?
    function_call << "(#{@arguments.map { |x| x.inspect }.join(", ")})"
  end
  function_call
end