class Gnomika::Quote
Attributes
content[R]
Public Class Methods
new(content, author)
click to toggle source
# File lib/gnomikologikon/quote.rb, line 5 def initialize(content, author) @content = content @author = author end
Public Instance Methods
to_s()
click to toggle source
# File lib/gnomikologikon/quote.rb, line 10 def to_s str = "#{@content}" str << "\n - #{@author}" unless @author.strip.empty? str end