Class: Locomotive::Liquid::Drops::CurrentUser
- Inherits:
-
Base
- Object
- Liquid::Drop
- Base
- Locomotive::Liquid::Drops::CurrentUser
show all
- Defined in:
- lib/locomotive/liquid/drops/current_user.rb
Instance Attribute Summary
Attributes inherited from Base
#_source
Instance Method Summary
collapse
Methods inherited from Base
#id, #initialize, liquify
Instance Method Details
#email ⇒ Object
14
15
16
|
# File 'lib/locomotive/liquid/drops/current_user.rb', line 14
def email
_source.email if logged_in?
end
|
6
7
8
|
# File 'lib/locomotive/liquid/drops/current_user.rb', line 6
def logged_in?
_source.present?
end
|
#name ⇒ Object
10
11
12
|
# File 'lib/locomotive/liquid/drops/current_user.rb', line 10
def name
_source.name if logged_in?
end
|