Class: REXML::Element
- Inherits:
-
Object
- Object
- REXML::Element
- Defined in:
- lib/lolspeak.rb
Instance Method Summary collapse
-
#to_lolspeak!(&filter) ⇒ Object
Translates each REXML::Text of this element.
-
#to_lolspeak_recursive!(&filter) ⇒ Object
Translates each REXML::Text of this element and all child elements.
Instance Method Details
#to_lolspeak!(&filter) ⇒ Object
Translates each REXML::Text of this element. Calls Tranzlator.translate_xml_element! on the receiver using the default tranzlator.
See also: LOLspeak.default_tranzlator
:call-seq:
to_lolspeak!
to_lolspeak! { |word| transform }
273 274 275 |
# File 'lib/lolspeak.rb', line 273 def to_lolspeak!(&filter) LOLspeak::default_tranzlator.translate_xml_element!(self, &filter) end |
#to_lolspeak_recursive!(&filter) ⇒ Object
Translates each REXML::Text of this element and all child elements. Calls Tranzlator.translate_xml_element_recusvie! on the receiver using the default tranzlator.
See also: LOLspeak.default_tranzlator
:call-seq:
to_lolspeak_recursive!
to_lolspeak_recursive! { |word| transform }
287 288 289 290 |
# File 'lib/lolspeak.rb', line 287 def to_lolspeak_recursive!(&filter) t = LOLspeak::default_tranzlator t.translate_xml_element_recursive!(self, &filter) end |