Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bc75e49382dc9b94ff02ee45f6438cf2 > files > 307

ruby-actionmailer-2.3.4-1mdv2010.0.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>mime_encode_binary (TMail::Mail)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/action_mailer/vendor/tmail-1.2.3/tmail/net.rb, line 112</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mime_encode_binary</span>( <span class="ruby-identifier">body</span> )
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">body</span> = [<span class="ruby-identifier">body</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'m'</span>)
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">set_content_type</span> <span class="ruby-value str">'application'</span>, <span class="ruby-value str">'octet-stream'</span>
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">encoding</span> = <span class="ruby-value str">'Base64'</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>