class TMail::ReferencesHeader
Public Instance Methods
each_id() { |i| ... }
click to toggle source
# File lib/tmail/header.rb, line 435 def each_id self.refs.each do |i| yield i if MESSAGE_ID === i end end
each_phrase() { |i| ... }
click to toggle source
# File lib/tmail/header.rb, line 446 def each_phrase self.refs.each do |i| yield i unless MESSAGE_ID === i end end
ids()
click to toggle source
# File lib/tmail/header.rb, line 441 def ids ensure_parsed @ids end
phrases()
click to toggle source
# File lib/tmail/header.rb, line 452 def phrases ret = [] each_phrase {|i| ret.push i } ret end
refs()
click to toggle source
# File lib/tmail/header.rb, line 430 def refs ensure_parsed @refs end
Private Instance Methods
do_accept( strategy )
click to toggle source
# File lib/tmail/header.rb, line 482 def do_accept( strategy ) first = true @ids.each do |i| if first first = false else strategy.space end strategy.meta i end end
do_parse()
click to toggle source
# File lib/tmail/header.rb, line 469 def do_parse str = @body while m = MESSAGE_ID.match(str) pre = m.pre_match.strip @refs.push pre unless pre.empty? @refs.push s = m[0] @ids.push s str = m.post_match end str = str.strip @refs.push str unless str.empty? end
init()
click to toggle source
# File lib/tmail/header.rb, line 460 def init @refs = [] @ids = [] end
isempty?()
click to toggle source
# File lib/tmail/header.rb, line 465 def isempty? @ids.empty? end