class Newspaper
Attributes
articles[RW]
time[RW]
Public Class Methods
new()
click to toggle source
# File lib/newspaper.rb, line 4 def initialize @articles = [] end
Public Instance Methods
add_article(article)
click to toggle source
# File lib/newspaper.rb, line 8 def add_article(article) if article.is_a? Article @articles << article else raise StandardError end end