Module: Rolypoly::RoleDSL::ClassMethods

Extended by:
Forwardable
Defined in:
lib/rolypoly/role_dsl.rb

Instance Method Summary collapse

Instance Method Details

#inherited(subclass) ⇒ Object



44
45
46
47
# File 'lib/rolypoly/role_dsl.rb', line 44

def inherited(subclass)
  super
  subclass.instance_variable_set('@rolypoly_gatekeepers', rolypoly_gatekeepers.dup)
end

#rolypoly_gatekeepersObject



51
52
53
# File 'lib/rolypoly/role_dsl.rb', line 51

def rolypoly_gatekeepers
  @rolypoly_gatekeepers ||= Rolypoly::RoleGatekeepers.new
end