Class: Metrocot::Scanners::TextileScanner

Inherits:
BaseScanner
  • Object
show all
Defined in:
lib/metrocot.rb

Overview

Scans the dom subtree and converts it to textile where possible returning a string containing the Textile version

Instance Method Summary collapse

Instance Method Details

#scan(data) ⇒ Object



1093
1094
1095
1096
1097
# File 'lib/metrocot.rb', line 1093

def scan( data )
	if data.is_a? Hpricot::Elem
		data = data.inner_text
	end
end