In: |
xsd/namedelements.rb
|
Parent: | Object |
# File xsd/namedelements.rb, line 57 def +(rhs) o = NamedElements.new o.elements = @elements + rhs.elements o end
# File xsd/namedelements.rb, line 30 def [](idx) if idx.is_a?(Numeric) @elements[idx] else @cache[idx] ||= @elements.find { |item| item.name == idx } end end