Class: HtmlToKit

Inherits:
Object
  • Object
show all
Includes:
ActiveMethod
Defined in:
lib/htmltokit.rb,
lib/htmltokit/source.rb,
lib/htmltokit/to_pdf.rb,
lib/htmltokit/version.rb,
lib/htmltokit/to_image.rb

Defined Under Namespace

Classes: Error, Source, ToImage, ToPDF

Constant Summary collapse

VERSION =
"0.2.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url_file_or_html) ⇒ HtmlToKit

Returns a new instance of HtmlToKit.



17
18
19
# File 'lib/htmltokit.rb', line 17

def initialize(url_file_or_html)
  @source = Source.new(url_file_or_html)
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



15
16
17
# File 'lib/htmltokit.rb', line 15

def source
  @source
end