Sha256: 9071bd4205bc72552c94ed69236e59651518e9f85311107a7248666defa274c6

Contents?: true

Size: 220 Bytes

Versions: 7

Compression:

Stored size: 220 Bytes

Contents

module LucidPolicy
  class Helper < BasicObject
    attr_reader :result

    def initialize
      @result = :deny
    end

    def allow
      @result = :allow
      nil
    end

    def deny
      nil
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
isomorfeus-policy-1.0.0.zeta25 lib/isomorfeus_policy/lucid_policy/helper.rb
isomorfeus-policy-1.0.0.zeta24 lib/isomorfeus_policy/lucid_policy/helper.rb
isomorfeus-policy-1.0.0.zeta23 lib/isomorfeus_policy/lucid_policy/helper.rb
isomorfeus-policy-1.0.0.zeta22 lib/isomorfeus_policy/lucid_policy/helper.rb
isomorfeus-policy-1.0.0.zeta21 lib/isomorfeus_policy/lucid_policy/helper.rb
isomorfeus-policy-1.0.0.zeta20 lib/isomorfeus_policy/lucid_policy/helper.rb
isomorfeus-policy-1.0.0.zeta19 lib/isomorfeus_policy/lucid_policy/helper.rb