class Orgy::OrgHyperlink

Org-mode Hyperlinks

Attributes

data[R]

Public Class Methods

new( url, title ) click to toggle source

Takes two arguements. The first is the string representation of the url. The second is the label you wish to use.

Calls superclass method Orgy::OrgData::new
# File lib/orgy/org_hyperlink.rb, line 12
def initialize( url, title )
  super()
  @data[:url] = url
  @data[:title] = title
end

Public Instance Methods

to_s() click to toggle source
Calls superclass method Orgy::OrgObject#to_s
# File lib/orgy/org_hyperlink.rb, line 18
def to_s
  "[[#{@data[:url].to_s}][#{@data[:title].to_s}]]" << super
end