Sha256: 00469ec6816d195cc9ee4a02b43690eb06f08512674a0a3a50a5fc0bf9b61d56
Contents?: true
Size: 925 Bytes
Versions: 6
Compression:
Stored size: 925 Bytes
Contents
# # config.rb # # Copyright (c) 1998-2004 Minero Aoki # # This program is free software. # You can distribute/modify this program under the terms of # the GNU Lesser General Public License version 2.1. # module TMail class Config def initialize(strict) @strict_parse = strict @strict_base64decode = strict end def strict_parse? @strict_parse end attr_writer :strict_parse def strict_base64decode? @strict_base64decode end attr_writer :strict_base64decode def new_body_port(mail) StringPort.new end alias new_preamble_port new_body_port alias new_part_port new_body_port end DEFAULT_CONFIG = Config.new(false) DEFAULT_STRICT_CONFIG = Config.new(true) def Config.to_config(arg) return DEFAULT_STRICT_CONFIG if arg == true return DEFAULT_CONFIG if arg == false arg or DEFAULT_CONFIG end end
Version data entries
6 entries across 6 versions & 3 rubygems