Sha256: 5001452937149b316ab47ecde746bebd915e57a4fbb4fd54270adca04f7e43a9

Contents?: true

Size: 500 Bytes

Versions: 15

Compression:

Stored size: 500 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Workato
  module Connector
    module Sdk
      module Dsl
        module Call
          ruby2_keywords def call(method, *args)
            method_proc = @_methods[method]

            raise UndefinedMethodError, method unless method_proc
            raise UnexpectedMethodDefinitionError.new(method, method_proc) unless method_proc.is_a?(Proc)

            instance_exec(*args, &method_proc)
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
workato-connector-sdk-1.3.14 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.13 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.12 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.11 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.10 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.9 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.8 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.7 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.6 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.5 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.4 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.3 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.2 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.1 lib/workato/connector/sdk/dsl/call.rb
workato-connector-sdk-1.3.0 lib/workato/connector/sdk/dsl/call.rb