class SycLink::Website

A Website is organizing a link list. The links can be added, updated and removed. It is also possible to search for links. And finally an html representation of the Website can be created.

A Website is organizing a link list. The links can be added, updated and removed. It is also possible to search for links. And finally an html representation of the Website can be created.

Attributes

title[R]

The title of the website

Public Class Methods

new(title = "Link List") click to toggle source

Create a new Website

# File lib/syclink/website.rb, line 22
def initialize(title = "Link List")
  @links = []
  @title = title
end

Public Instance Methods

rows() click to toggle source

Return an array of all link values as rows

# File lib/syclink/website.rb, line 101
def rows
  links.map { |link| link.row }
end