Class: Amrita2::Filters::GetTextFilter

Inherits:
Base show all
Defined in:
lib/amrita2/gettext.rb

Instance Attribute Summary

Attributes inherited from Base

#next_

Instance Method Summary collapse

Methods inherited from Base

filter_method, inherited, #parse_filter_a, #|

Instance Method Details

#parse_node(de, node) ⇒ Object



81
82
83
84
85
86
87
88
89
90
# File 'lib/amrita2/gettext.rb', line 81

def parse_node(de, node)
  case node
  when Hpricot::CData
    super
  when Hpricot::Text
    Amrita2::GetTextBridge::TextNodeForGetText.new(de, node)
  else
    super
  end
end