Method: Escapement::HTML#initialize
- Defined in:
- lib/escapement/html.rb
#initialize(html) ⇒ HTML
Returns a new instance of HTML.
8 9 10 11 12 |
# File 'lib/escapement/html.rb', line 8 def initialize(html) @doc = Nokogiri::HTML(html) @elements = [] @results = nil end |