add_nodoc_to_set.diff

Patch diff. - Pete Higgins, 05/11/2011 11:38 AM

Download (560 Bytes)

View differences:

lib/set.rb
76 76
    end
77 77
  end
78 78

  
79
  def do_with_enum(enum, &block)
79
  def do_with_enum(enum, &block) # :nodoc:
80 80
    if enum.respond_to?(:each_entry)
81 81
      enum.each_entry(&block)
82 82
    elsif enum.respond_to?(:each)
......
145 145
    @hash.keys
146 146
  end
147 147

  
148
  def flatten_merge(set, seen = Set.new)
148
  def flatten_merge(set, seen = Set.new) # :nodoc:
149 149
    set.each { |e|
150 150
      if e.is_a?(Set)
151 151
	if seen.include?(e_id = e.object_id)