class Admission::Tests::ContextSpecificPrivilege

Attributes

privilege[R]

Public Class Methods

new(privilege) click to toggle source
# File lib/admission/tests/tests.rb, line 101
def initialize privilege
  @privilege = privilege
  @hash = [privilege.name, privilege.level, privilege.context].hash
end

Public Instance Methods

eql?(other) click to toggle source
# File lib/admission/tests/tests.rb, line 106
def eql? other
  hash == other.hash
end