Sha256: 48af33fecdace5311dc860e7b122f8116203ee7553ce39a1207c4f99d17f5897

Contents?: true

Size: 320 Bytes

Versions: 14

Compression:

Stored size: 320 Bytes

Contents

module Isomorfeus
  module Policy
    class Helper < BasicObject
      attr_reader :result

      def initialize
        @result= nil
      end

      def allow
        @result = :allow if @result.nil?
        nil
      end

      def deny
        @result = :deny if @result.nil?
        nil
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
isomorfeus-policy-1.0.0.zeta10 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta9 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta8 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta6 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta5 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta4 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta3 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta2 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.zeta1 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.epsilon4 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.epsilon3 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.epsilon2 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.epsilon1 lib/isomorfeus/policy/helper.rb
isomorfeus-policy-1.0.0.delta12 lib/isomorfeus/policy/helper.rb