class QiitaScouter::Articles

QiitaScouter::Articles

Attributes

articles[RW]

Public Class Methods

new(articles = []) click to toggle source
# File lib/models/articles.rb, line 9
def initialize(articles = [])
  @articles = articles
end

Public Instance Methods

+(other) click to toggle source
# File lib/models/articles.rb, line 17
def +(other)
  @articles += other.articles
  self
end
<<(article) click to toggle source
# File lib/models/articles.rb, line 13
def <<(article)
  @articles << article
end
each() { |article| ... } click to toggle source
# File lib/models/articles.rb, line 26
def each
  @articles.each { |article|yield(article) }
end
size() click to toggle source
# File lib/models/articles.rb, line 22
def size
  @articles.size
end