module Sisimai::Reason::Vacation
Sisimai::Reason::Vacation
is for only returning text and description. This class is called only from Sisimai.reason
method.
Constants
- Index
Public Class Methods
description()
click to toggle source
# File lib/sisimai/reason/vacation.rb, line 16 def description; return 'Email replied automatically due to a recipient is out of office'; end
match(argv1)
click to toggle source
Try to match that the given text and regular expressions @param [String] argv1 String
to be matched with regular expressions @return [True,False] false: Did not match
true: Matched
# File lib/sisimai/reason/vacation.rb, line 22 def match(argv1) return nil unless argv1 return true if Index.any? { |a| argv1.include?(a) } return false end
text()
click to toggle source
# File lib/sisimai/reason/vacation.rb, line 15 def text; return 'vacation'; end
true(*)
click to toggle source
# File lib/sisimai/reason/vacation.rb, line 28 def true(*); return nil; end