Class: Repubmark::TitledRef
- Inherits:
-
Object
- Object
- Repubmark::TitledRef
- Defined in:
- lib/repubmark/titled_ref.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, title) ⇒ TitledRef
constructor
A new instance of TitledRef.
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
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/repubmark/titled_ref.rb', line 5 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/repubmark/titled_ref.rb', line 5 def url @url end |