Method: Trole::Storage::StringOne#display_roles

Defined in:
lib/trole/storage/string_one.rb

#display_rolesArray<Symbol>

display the role as a list of one symbol see Troles::Marshaller::Bitmask

display the role as a list of one symbol

Returns:

  • (Array<Symbol>)

    roles list

  • (Array<Symbol>)

    roles list



20
21
22
23
# File 'lib/trole/storage/string_one.rb', line 20

def display_roles
  return [] if ds_field_value?
  [ds_field_value.to_sym]
end