Sha256: fe25265cb816cfbd39365a35c9e6ff468af61df11e0a88401cebb1d734aa83a1

Contents?: true

Size: 246 Bytes

Versions: 5

Compression:

Stored size: 246 Bytes

Contents

module YouShallNotPass
  class Policy
    def initialize(authorizator)
      @authorizator = authorizator
    end

    def call(**options)
      policy(**options)
    end

    def policy(**args)
      raise NotImplementedError
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
you_shall_not_pass-0.4.0 lib/you_shall_not_pass/policy.rb
you_shall_not_pass-0.3.1 lib/you_shall_not_pass/policy.rb
you_shall_not_pass-0.3.0 lib/you_shall_not_pass/policy.rb
you_shall_not_pass-0.2.1 lib/you_shall_not_pass/policy.rb
you_shall_not_pass-0.1.0 lib/you_shall_not_pass/policy.rb