Sha256: add445621c27940b9a213bbebeb71e9b4bb2fa8d3833ea9a2bb54a8257c721a8

Contents?: true

Size: 258 Bytes

Versions: 16

Compression:

Stored size: 258 Bytes

Contents

module Metaractor
  module ContextValidity
    def valid?
      !invalid?
    end

    def invalid?
      @invalid || false
    end

    def invalidate!
      @invalid = true
    end
  end
end

Interactor::Context.send(:include, Metaractor::ContextValidity)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
metaractor-3.3.4 lib/metaractor/context_validity.rb
metaractor-3.3.3 lib/metaractor/context_validity.rb
metaractor-3.3.2 lib/metaractor/context_validity.rb
metaractor-3.3.0 lib/metaractor/context_validity.rb
metaractor-3.2.0 lib/metaractor/context_validity.rb
metaractor-3.1.1 lib/metaractor/context_validity.rb
metaractor-3.1.0 lib/metaractor/context_validity.rb
metaractor-3.0.1 lib/metaractor/context_validity.rb
metaractor-3.0.0 lib/metaractor/context_validity.rb
metaractor-2.1.1 lib/metaractor/context_validity.rb
metaractor-2.1.0 lib/metaractor/context_validity.rb
metaractor-2.0.0 lib/metaractor/context_validity.rb
metaractor-1.2.1 lib/metaractor/context_validity.rb
metaractor-1.2.0 lib/metaractor/context_validity.rb
metaractor-1.1.0 lib/metaractor/context_validity.rb
metaractor-0.5.0 lib/metaractor/context_validity.rb