Class: REXML::Element
- Inherits:
-
Object
- Object
- REXML::Element
- Defined in:
- lib/oos4ruby.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#add_category(term, scheme = nil, label = nil) ⇒ Object
72 73 74 75 76 77 78 |
# File 'lib/oos4ruby.rb', line 72 def add_category(term, scheme = nil, label = nil) c = REXML::Element.new('category', self) c.add_attribute('term', term) c.add_attribute('scheme', scheme) if scheme c.add_attribute('label', label) if label c end |