Module: TinyCore::Role
- Defined in:
- lib/tiny_core/role.rb,
lib/tiny_core/role/admin.rb,
lib/tiny_core/role/guest.rb
Defined Under Namespace
Modules: Admin, ClassMethods, Guest
Class Method Summary collapse
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/tiny_core/role.rb', line 21 def method_missing(method, *args) if method.to_s =~ /^can_.*\?$/ false else super end end |
Class Method Details
.included(base) ⇒ Object
29 30 31 |
# File 'lib/tiny_core/role.rb', line 29 def self.included(base) base.extend ClassMethods end |