Class: Avatar::Source::NilSource
- Inherits:
-
Object
- Object
- Avatar::Source::NilSource
- Includes:
- AbstractSource
- Defined in:
- lib/avatar/source/nil_source.rb
Overview
A really dumb implementation that never returns a URL. Can be helpful for testing. Also used in GravatarSource::default_source.
Instance Method Summary collapse
-
#avatar_url_for(person, options = {}) ⇒ Object
Always returns nil.
Instance Method Details
#avatar_url_for(person, options = {}) ⇒ Object
Always returns nil.
11 12 13 |
# File 'lib/avatar/source/nil_source.rb', line 11 def avatar_url_for(person, = {}) nil end |