Method: Pixiv::Page.lazy_new

Defined in:
lib/pixiv/page.rb

.lazy_new(attrs = {}, &doc_creator) ⇒ Object

A new Page

Parameters:

  • attrs (Hash{Symbol=>Object}) (defaults to: {})

Yield Returns:

  • (Nokogiri::HTML::Document)


6
7
8
# File 'lib/pixiv/page.rb', line 6

def self.lazy_new(attrs = {}, &doc_creator)
  self.new(doc_creator, attrs)
end