Sha256: 6ed3c10ed675fe61fec6234d269c0a019c9ff66b232d1ee511dc5a2e9f9985d5

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

module CanTango
  module Scope
    class Ability
      attr_accessor :ability

      def initialize ability
        @ability = ability
      end

      delegate :can?, :cannot?, :candidate, :options, :modes, :session, :to => :ability
    end
  end
end
 

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cantango-core-0.1.9.3 lib/cantango/scope/ability.rb
cantango-core-0.1.9.2 lib/cantango/scope/ability.rb
cantango-core-0.1.9.1 lib/cantango/scope/ability.rb