Module: Roleful

Defined in:
lib/roleful.rb,
lib/roleful/role.rb,
lib/roleful/inclusion.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Role

Constant Summary collapse

VERSION =
'1.0.0'

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


2
3
4
5
6
7
8
9
10
# File 'lib/roleful/inclusion.rb', line 2

def self.included(base)
  base.class_eval do
    extend(ClassMethods)
    include(InstanceMethods)
    const_set("ROLES", { })
    const_set("PERMISSIONS", Set.new)
    define_role(:null)
  end
end