Class Hobix::LinkList
In: lib/hobix/linklist.rb
Parent: BaseEntry

Methods

content   each  

Public Instance methods

Converts the link list into a RedCloth string for display in templates.

[Source]

    # File lib/hobix/linklist.rb, line 54
54:     def content
55:         RedCloth.new( 
56:             @links.collect do |title, url|
57:                 "* \"#{ title }\":#{ url }"
58:             end.join( "\n" )
59:         )
60:     end

Adds support for enumeration.

[Source]

    # File lib/hobix/linklist.rb, line 63
63:     def each
64:       @links.each { |title, url| yield title, url }
65:     end

[Validate]