Class: Ronin::Author
- Inherits:
-
Object
- Object
- Ronin::Author
- Includes:
- Model, Model::HasName
- Defined in:
- lib/ronin/author.rb
Overview
Represents an author and any information about them or the organization which they belong to.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the author to a String.
Methods included from Model::HasName
Methods included from Model
Instance Method Details
#to_s ⇒ String
Converts the author to a String.
59 60 61 62 63 64 65 |
# File 'lib/ronin/author.rb', line 59 def to_s if self.email "#{self.name} <#{self.email}>" else super end end |