Sha256: de884f93c6201a213fcaa0cf13ee84c4fbb7ad51c2b05c43a65c91460e4d7f63

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true
# auto_register: false

require "dry/matcher/result_matcher"
require "dry/monads"

module <%= application_module %>
  class Operation
    def self.inherited(subclass)
      super
      subclass.include Dry::Monads[:do, :result]
      subclass.include Dry::Matcher::ResultMatcher.for(:call)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/generators/application/templates/lib/__application_path__/operation.rb.tt
snowpack-1.0.0.alpha6 lib/snowpack/generators/application/templates/lib/__application_path__/operation.rb.tt
snowpack-1.0.0.alpha5 lib/snowpack/generators/application/templates/lib/__application_path__/operation.rb.tt