# File lib/tmail/address.rb, line 308 def ==( other ) other.respond_to? :to_a and @addresses == other.to_a end
# File lib/tmail/address.rb, line 318 def []( idx ) @addresses[idx] end
# File lib/tmail/address.rb, line 372 def accept( strategy, dummy1 = nil, dummy2 = nil ) strategy.phrase @name strategy.meta ':' strategy.space first = true each do |mbox| if first first = false else strategy.puts_meta ',' end strategy.space mbox.accept strategy end strategy.meta ';' strategy.lwsp '' end
# File lib/tmail/address.rb, line 360 def add( a ) @addresses.push a end
# File lib/tmail/address.rb, line 297 def address_group? true end
# File lib/tmail/address.rb, line 366 def delete( a ) @addresses.delete a end
# File lib/tmail/address.rb, line 330 def each( &block ) @addresses.each(&block) end
# File lib/tmail/address.rb, line 356 def each_address( &block ) flatten.each(&block) end
# File lib/tmail/address.rb, line 326 def empty? @addresses.empty? end
# File lib/tmail/address.rb, line 344 def flatten set = [] @addresses.each do |a| if a.respond_to? :flatten set.concat a.flatten else set.push a end end set end
# File lib/tmail/address.rb, line 314 def hash map {|i| i.hash }.hash end
# File lib/tmail/address.rb, line 340 def include?( a ) @addresses.include? a end
# File lib/tmail/address.rb, line 334 def to_a @addresses.dup end
Generated with the Darkfish Rdoc Generator 2.