Class: Gretel::Link
- Inherits:
-
Object
- Object
- Gretel::Link
- Defined in:
- lib/gretel/link.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(text, url) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(text, url) ⇒ Link
Returns a new instance of Link.
5 6 7 |
# File 'lib/gretel/link.rb', line 5 def initialize(text, url) @text, @url = text, url end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/gretel/link.rb', line 3 def text @text end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/gretel/link.rb', line 3 def url @url end |