Method: Trole::Storage::BitOne#set_role
- Defined in:
- lib/trole/storage/bit_one.rb
#set_role(role) ⇒ Object
saves the role for the role subject in the data store
27 28 29 30 |
# File 'lib/trole/storage/bit_one.rb', line 27 def set_role role num = bitmask.write role set_ds_field(num == 1 ? false : true) # boolean field in Data store end |