Sha256: 60e50275d288b4ae8cffca1461822154971af2409a678fbfe5cc27118d0938a2

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

# -*- ruby -*-

require_relative 'invocations/invocation'

# This module refines Kernel, adding "invocation" and "Invocation" as methods.
module Invocations
  refine Kernel do
    # Creates a new Invocation with the provided parameters
    def invocation(*rest, **keyrest, &block)
      ::Invocation.new(*rest, **keyrest, &block)
    end

    alias_method :Invocation, :invocation
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
invocations-0.2.10 lib/invocations.rb
invocations-0.2.9 lib/invocations.rb
invocations-0.2.8 lib/invocations.rb
invocations-0.2.7 lib/invocations.rb
invocations-0.2.6 lib/invocations.rb