# File lib/xsd/namedelements.rb, line 73 73: def +(rhs) 74: o = NamedElements.new 75: o.elements = @elements + rhs.elements 76: @cache.clear 77: o 78: end
# File lib/xsd/namedelements.rb, line 62 62: def <<(rhs) 63: @elements << rhs 64: self 65: end
# File lib/xsd/namedelements.rb, line 40 40: def [](idx) 41: if idx.is_a?(Numeric) 42: @elements[idx] 43: else 44: @cache[idx] ||= @elements.find { |item| item.name == idx } 45: end 46: end
# File lib/xsd/namedelements.rb, line 80 80: def concat(rhs) 81: @elements.concat(rhs.elements) 82: @cache.clear 83: self 84: end
# File lib/xsd/namedelements.rb, line 67 67: def delete(rhs) 68: rv = @elements.delete(rhs) 69: @cache.clear 70: rv 71: end
# File lib/xsd/namedelements.rb, line 20 20: def dup 21: o = NamedElements.new 22: o.elements = @elements.dup 23: o 24: end
# File lib/xsd/namedelements.rb, line 56 56: def each 57: @elements.each do |element| 58: yield(element) 59: end 60: end
# File lib/xsd/namedelements.rb, line 32 32: def empty? 33: size == 0 34: end
# File lib/xsd/namedelements.rb, line 97 97: def find_all 98: o = NamedElements.new 99: each do |ele| 100: o << ele if yield(ele) 101: end 102: o 103: end
# File lib/xsd/namedelements.rb, line 48 48: def find_name(name) 49: @elements.find { |item| item.name.name == name } 50: end
# File lib/xsd/namedelements.rb, line 26 26: def freeze 27: super 28: @elements.freeze 29: self 30: end
# File lib/xsd/namedelements.rb, line 52 52: def keys 53: collect { |element| element.name } 54: end
# File lib/xsd/namedelements.rb, line 36 36: def size 37: @elements.size 38: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.