Class: Karasuba::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/karasuba/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#elementObject

Returns the value of attribute element.



3
4
5
# File 'lib/karasuba/link.rb', line 3

def element
  @element
end

#hrefObject

Returns the value of attribute href.



3
4
5
# File 'lib/karasuba/link.rb', line 3

def href
  @href
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/karasuba/link.rb', line 3

def text
  @text
end