module Redwood::MBox
Constants
- BREAK_RE
Public Class Methods
is_break_line?(l)
click to toggle source
# File lib/sup/mbox.rb, line 10 def is_break_line? l l =~ BREAK_RE or return false time = $1 begin ## hack -- make Time.parse fail when trying to substitute values from Time.now Time.parse time, 0 true rescue NoMethodError, ArgumentError warn "found invalid date in potential mbox split line, not splitting: #{l.inspect}" false end end
Private Instance Methods
is_break_line?(l)
click to toggle source
# File lib/sup/mbox.rb, line 10 def is_break_line? l l =~ BREAK_RE or return false time = $1 begin ## hack -- make Time.parse fail when trying to substitute values from Time.now Time.parse time, 0 true rescue NoMethodError, ArgumentError warn "found invalid date in potential mbox split line, not splitting: #{l.inspect}" false end end