Sha256: 470f3e64f8c90c534da6316326bd9f202946d72400250656082cc688e0fcad5f

Contents?: true

Size: 415 Bytes

Versions: 49

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Mutant
  module Procto
    # Define the .call method on +host+
    #
    # @param [Object] host
    #   the hosting object
    #
    # @return [undefined]
    #
    # @api private
    def self.included(host)
      host.extend(ClassMethods)
    end

    module ClassMethods
      def call(*arguments)
        new(*arguments).call
      end
    end
  end # Procto
end # Unparser

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
mutant-0.10.34 lib/mutant/procto.rb
mutant-0.10.33 lib/mutant/procto.rb
mutant-0.10.32 lib/mutant/procto.rb
mutant-0.10.31 lib/mutant/procto.rb
mutant-0.10.30 lib/mutant/procto.rb
mutant-0.10.29 lib/mutant/procto.rb
mutant-0.10.28 lib/mutant/procto.rb
mutant-0.10.27 lib/mutant/procto.rb
mutant-0.10.26 lib/mutant/procto.rb