class Swordfish::Node::Hyperlink

Attributes

href[RW]

Public Instance Methods

to_html() click to toggle source
# File lib/swordfish/nodes/hyperlink.rb, line 9
def to_html
  @href ||= ""
  "<a href=\"#{URI::escape(@href)}\">#{@children.map(&:to_html).join}</a>"
end