Class: TMail::Config

Inherits:
Object show all
Defined in:
lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(strict) ⇒ Config

Returns a new instance of Config.



31
32
33
34
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 31

def initialize( strict )
  @strict_parse = strict
  @strict_base64decode = strict
end

Instance Attribute Details

#strict_base64decode=(value) ⇒ Object (writeonly)

Sets the attribute strict_base64decode

Parameters:

  • value

    the value to set the attribute strict_base64decode to.



46
47
48
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 46

def strict_base64decode=(value)
  @strict_base64decode = value
end

#strict_parse=(value) ⇒ Object (writeonly)

Sets the attribute strict_parse

Parameters:

  • value

    the value to set the attribute strict_parse to.



40
41
42
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 40

def strict_parse=(value)
  @strict_parse = value
end

Class Method Details

.to_config(arg) ⇒ Object



60
61
62
63
64
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 60

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



48
49
50
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 48

def new_body_port( mail )
  StringPort.new
end

#strict_base64decode?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 42

def strict_base64decode?
  @strict_base64decode
end

#strict_parse?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/action_mailer/vendor/tmail-1.2.3/tmail/config.rb', line 36

def strict_parse?
  @strict_parse
end