Class: REXML::Element
- Inherits:
-
Object
- Object
- REXML::Element
- Defined in:
- lib/log4r-color/lib/xmlloader.rb
Instance Method Summary collapse
Instance Method Details
#value_of(elmt) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/log4r-color/lib/xmlloader.rb', line 14 def value_of(elmt) val = attributes[elmt] if val.nil? sub = elements[elmt] val = sub.text unless sub.nil? end val end |