Class: TMail::Config
- Defined in:
- lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb
Instance Attribute Summary collapse
-
#strict_base64decode ⇒ Object
writeonly
Sets the attribute strict_base64decode.
-
#strict_parse ⇒ Object
writeonly
Sets the attribute strict_parse.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(strict) ⇒ Config
constructor
A new instance of Config.
- #new_body_port(mail) ⇒ Object (also: #new_preamble_port, #new_part_port)
- #strict_base64decode? ⇒ Boolean
- #strict_parse? ⇒ Boolean
Constructor Details
#initialize(strict) ⇒ Config
Returns a new instance of Config.
36 37 38 39 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 36 def initialize( strict ) @strict_parse = strict @strict_base64decode = strict end |
Instance Attribute Details
#strict_base64decode=(value) ⇒ Object (writeonly)
Sets the attribute strict_base64decode
51 52 53 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 51 def strict_base64decode=(value) @strict_base64decode = value end |
#strict_parse=(value) ⇒ Object (writeonly)
Sets the attribute strict_parse
45 46 47 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 45 def strict_parse=(value) @strict_parse = value end |
Class Method Details
.to_config(arg) ⇒ Object
65 66 67 68 69 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 65 def Config.to_config( arg ) return DEFAULT_STRICT_CONFIG if arg == true return DEFAULT_CONFIG if arg == false arg or DEFAULT_CONFIG end |
Instance Method Details
#new_body_port(mail) ⇒ Object Also known as: new_preamble_port, new_part_port
53 54 55 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 53 def new_body_port( mail ) StringPort.new end |
#strict_base64decode? ⇒ Boolean
47 48 49 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 47 def strict_base64decode? @strict_base64decode end |
#strict_parse? ⇒ Boolean
41 42 43 |
# File 'lib/action_mailer/vendor/tmail-1.1.0/tmail/config.rb', line 41 def strict_parse? @strict_parse end |