Class: GuestUser
- Inherits:
-
Object
- Object
- GuestUser
- Defined in:
- lib/sinatra-authentication.rb
Instance Method Summary collapse
- #guest? ⇒ Boolean
-
#method_missing(m, *args) ⇒ Object
current_user.admin? returns false.
- #permission_level ⇒ Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
current_user.admin? returns false. current_user.has_a_baby? returns false. (which is a bit of an assumption I suppose)
299 300 301 |
# File 'lib/sinatra-authentication.rb', line 299 def method_missing(m, *args) return false end |
Instance Method Details
#guest? ⇒ Boolean
289 290 291 |
# File 'lib/sinatra-authentication.rb', line 289 def guest? true end |
#permission_level ⇒ Object
293 294 295 |
# File 'lib/sinatra-authentication.rb', line 293 def 0 end |