Class: Repubmark::TitledRef

Inherits:
Object
  • Object
show all
Defined in:
lib/repubmark/titled_ref.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, title) ⇒ TitledRef

Returns a new instance of TitledRef.



7
8
9
10
# File 'lib/repubmark/titled_ref.rb', line 7

def initialize(url, title)
  self.url = url
  self.title = title
end

Instance Attribute Details

#titleObject

Returns the value of attribute title.



5
6
7
# File 'lib/repubmark/titled_ref.rb', line 5

def title
  @title
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/repubmark/titled_ref.rb', line 5

def url
  @url
end