Sha256: 2b29deb56fef397425206f70069553cc626a14cf8f89505efe700d7e1c1eb7bc
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module Authority class Authorizer attr_reader :resource def initialize(resource) @resource = resource end ADJECTIVES.each do |adjective| class_eval <<-RUBY, __FILE__, __LINE__ + 1 def self.#{adjective}_by?(actor) false end RUBY end ADJECTIVES.each do |adjective| class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{adjective}_by?(actor) false end RUBY end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authority-0.0.1 | lib/authority/authorizer.rb |