Class: Link
- Inherits:
-
Object
- Object
- Link
- Defined in:
- lib/robinson.rb
Instance Method Summary collapse
-
#initialize(uri) ⇒ Link
constructor
A new instance of Link.
- #on_website?(address) ⇒ Boolean
Constructor Details
#initialize(uri) ⇒ Link
Returns a new instance of Link.
44 45 46 |
# File 'lib/robinson.rb', line 44 def initialize(uri) @uri = uri end |
Instance Method Details
#on_website?(address) ⇒ Boolean
47 48 49 50 |
# File 'lib/robinson.rb', line 47 def on_website?(address) #puts "#{host_and_port} vs #{host_and_port_of(address)}" host_and_port == host_and_port_of(address) end |