Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/roles_data_mapper/strategy/single.rb,
lib/generators/data_mapper/roles/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/roles_data_mapper/strategy/single.rb', line 4

def admin?
  self == :admin
end

#as_filenameObject



11
12
13
# File 'lib/generators/data_mapper/roles/core_ext.rb', line 11

def as_filename
  self.to_s.underscore  
end