class Tuersteher::MethodSpecification
Public Class Methods
new(method, negation)
click to toggle source
# File lib/tuersteher.rb, line 486 def initialize method, negation @method, @negation = method, negation end
Public Instance Methods
grant?(path_or_model, method, login_ctx)
click to toggle source
# File lib/tuersteher.rb, line 490 def grant? path_or_model, method, login_ctx rc = @method==method rc = !rc if @negation rc end
to_s()
click to toggle source
# File lib/tuersteher.rb, line 496 def to_s "#{@negation && 'not.'}method(:#{@method})" end