Sha256: 1b0d4d5a67f8fbff2cafcadd42fec52fd56db80a83a6923225245fb35e6f8e0a
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
module Formol module Permissions class Profile attr_reader :rights def initialize(name, rights = []) @name = name.to_sym @rights = rights.collect(&:to_sym) end def has_right?(right) @rights.include?(right.to_sym) end def <<(right) @rights << right.to_sym end def delete(right) @rights.delete(right.to_sym) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formol-0.0.6 | lib/formol/permissions/profile.rb |
formol-0.0.5 | lib/formol/permissions/profile.rb |
formol-0.0.4 | lib/formol/permissions/profile.rb |