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