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