Class: EgovUtils::UserUtils::Role
- Inherits:
-
Object
- Object
- EgovUtils::UserUtils::Role
- Defined in:
- lib/egov_utils/user_utils/role.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.add(name) ⇒ Object
16 17 18 19 |
# File 'lib/egov_utils/user_utils/role.rb', line 16 def self.add(name) roles[name] = self self.role_name = name end |
.find(name) ⇒ Object
12 13 14 |
# File 'lib/egov_utils/user_utils/role.rb', line 12 def self.find(name) roles[name] end |
.roles ⇒ Object
8 9 10 |
# File 'lib/egov_utils/user_utils/role.rb', line 8 def self.roles @@roles ||= {} end |
Instance Method Details
#define_abilities(ability) ⇒ Object
21 22 |
# File 'lib/egov_utils/user_utils/role.rb', line 21 def define_abilities(ability) end |