-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ class Preview | |
def initialize(link) | ||
@url = link | ||
@resource = open(@url) | ||
@document = Nokogiri::HTML(@resource) | ||
@document = Nokogiri.HTML(@resource) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
markijbema
Author
Owner
|
||
end | ||
|
||
def to_s | ||
|
This is the way described in the documentation of Nokogiri, so I'm not sure I'm ready to switch. I'll look at their API and see if they have a more Ruby idiomatic way.