Method: Plat::Layout#roles

Defined in:
lib/plat/role.rb

#rolesObject



27
28
29
30
31
32
33
# File 'lib/plat/role.rb', line 27

def roles
  @roles ||= begin
    configuration.roles.map do |role,options|
      [ role, Plat::Role.create(self,role,options) ]
    end.to_h
  end
end