Class: DryCss::Site
- Inherits:
-
Object
- Object
- DryCss::Site
- Defined in:
- lib/dry_css/site.rb
Instance Method Summary collapse
-
#initialize(uri) ⇒ Site
constructor
A new instance of Site.
- #uris ⇒ Object
Constructor Details
#initialize(uri) ⇒ Site
Returns a new instance of Site.
8 9 10 11 |
# File 'lib/dry_css/site.rb', line 8 def initialize(uri) @uri = uri @html = Nokogiri::HTML(open(uri, :allow_redirections => :all)) end |
Instance Method Details
#uris ⇒ Object
13 14 15 |
# File 'lib/dry_css/site.rb', line 13 def uris @uris ||= find_uris end |