class Content

Attributes

items[R]

Public Class Methods

new(data) click to toggle source
# File lib/content.rb, line 4
def initialize(data)
        @items = data.map {|item| ContentItem.new item}
end

Public Instance Methods

find(name) click to toggle source
# File lib/content.rb, line 8
def find(name)
        @items.select {|i| i.name == name}.first
end