Sha256: 7f3a137c36c6dd8bd213e053ce2255044b5b7edf8f8631a678f3a926da394c3b

Contents?: true

Size: 289 Bytes

Versions: 10

Compression:

Stored size: 289 Bytes

Contents

module CanTango
  module Scope
    class Ability
      attr_accessor :ability

      def initialize ability
        @ability = ability
      end

      def can? *args
        ability.can? *args
      end

      def cannot? *args
        ability.cannot? *args
      end
    end
  end
end
 

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cantango-core-0.1.9 lib/cantango/scope/ability.rb
cantango-core-0.1.8 lib/cantango/scope/ability.rb
cantango-core-0.1.7 lib/cantango/scope/ability.rb
cantango-core-0.1.6 lib/cantango/scope/ability.rb
cantango-core-0.1.5 lib/cantango/scope/ability.rb
cantango-core-0.1.4 lib/cantango/scope/ability.rb
cantango-core-0.1.3 lib/cantango/scope/ability.rb
cantango-core-0.1.2 lib/cantango/scope/ability.rb
cantango-core-0.1.1 lib/cantango/scope/ability.rb
cantango-core-0.1.0 lib/cantango/scope/ability.rb