Sha256: 67e700eead724b057b2b46d6acc893bc9d9321ecf9451a3471403afa5edc5173

Contents?: true

Size: 231 Bytes

Versions: 1

Compression:

Stored size: 231 Bytes

Contents

module Kan
  class Application
    def initialize(scopes)
      @scopes = Hash(scopes)
    end

    def [](ability)
      scope, ability_name = ability.split('.')
      @scopes[scope.to_sym].ability(ability_name)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kan-0.1.0 lib/kan/application.rb