Class: XFN::Link
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- XFN::Link
- Defined in:
- lib/mofo/xfn.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Link
constructor
A new instance of Link.
- #to_html ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Method Details
#to_html ⇒ Object
13 14 15 |
# File 'lib/mofo/xfn.rb', line 13 def to_html %[<a href="#{link}" rel="#{Array(relation) * ' '}">#{name}</a>] end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/mofo/xfn.rb', line 17 def to_s link end |