Module: QuoteHashExtensions
- Defined in:
- lib/quote.rb
Instance Method Summary collapse
Instance Method Details
#format ⇒ Object
27 28 29 |
# File 'lib/quote.rb', line 27 def format "#{self['theme']}: \"#{self['quote']}\" - #{self['source']}, #{self['context']}." end |
#format_with_color ⇒ Object
23 24 25 |
# File 'lib/quote.rb', line 23 def format_with_color "#{self['theme']}: \"#{self['quote'].green}\" - #{self['source'].red}, #{self['context'].red}." end |