Sha256: bae49e50bb9ac5292531445296cd711e00c6949f0099761116cbebd2efbf47cb

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

# encoding: UTF-8

module Clerq
  module Services

    class Service
      if RUBY_VERSION =~ /3\.[[:digit:]]+\.[[:digit:]]/
        def self.call(*args, **opts)
          new(*args, **opts).call
        end
      else
        def self.call(*args)
          new(*args).call
        end
      end

      private_class_method :new

      # Should be implemented in subclasses
      def call
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clerq-0.3.4 lib/clerq/services/service.rb