Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/roles_mongo_mapper/strategy/single.rb,
lib/generators/mongo_mapper/roles/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#admin? ⇒ Boolean
4 5 6 |
# File 'lib/roles_mongo_mapper/strategy/single.rb', line 4 def admin? self == :admin end |
#as_filename ⇒ Object
8 9 10 |
# File 'lib/generators/mongo_mapper/roles/core_ext.rb', line 8 def as_filename self.to_s.underscore end |