Sha256: 2c2945829a003d8685dfd71463ee28016f80a965f5f658c69233611ff582b923
Contents?: true
Size: 568 Bytes
Versions: 8
Compression:
Stored size: 568 Bytes
Contents
module Avatar # :nodoc: module Source # :nodoc: # To be included by classes that generate avatar URLs from profiles. module AbstractSource # Return an avatar URL for the person, or nil if this source cannot generate one. # Including classes <em>must</em> override this method. In general, implementations # should return nil if +person+ is nil. def avatar_url_for(person, options = {}) raise NotImplementedError.new('including class must define avatar_url_for(person, options = {})') end end end end
Version data entries
8 entries across 8 versions & 3 rubygems