Method: Hpricot::Traverse#root
- Defined in:
- lib/parser.rb
#root ⇒ Object
258 259 260 261 262 263 264 |
# File 'lib/parser.rb', line 258 def root return @root unless @root.nil? se_in=self se_in=se_in.parent until se_in.parent.nil? @root=se_in se_in end |