Sha256: e7c914e0d6a3906e8ab3b4acadb249526e459f7a790c12474efed75bd1078934
Contents?: true
Size: 485 Bytes
Versions: 2
Compression:
Stored size: 485 Bytes
Contents
# typed: false # frozen_string_literal: true module Workato module Connector module Sdk module Dsl module Call 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workato-connector-sdk-1.2.0 | lib/workato/connector/sdk/dsl/call.rb |
workato-connector-sdk-1.1.0 | lib/workato/connector/sdk/dsl/call.rb |