Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 135bc52904e74f332d0a037a046b5c11 > files > 37

ruby-icon-artist-0.1.92-1.fc13.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>export (IconArtist::Icon)</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/icon-artist/icon.rb, line 407</span>
    <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">export</span>(<span class="ruby-identifier">dir</span>=<span class="ruby-value str">&quot;.&quot;</span>,<span class="ruby-identifier">sizes</span>=<span class="ruby-constant">THEME_SIZES</span>)
      <span class="ruby-identifier">export_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">dir</span>)
      <span class="ruby-identifier">exported_sizes</span> = <span class="ruby-identifier">export_pngs</span>(<span class="ruby-identifier">export_dir</span>,<span class="ruby-identifier">sizes</span>)
      <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sizes</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'scalable'</span>)
        <span class="ruby-identifier">exported_sizes</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">export_scalable</span>(<span class="ruby-identifier">export_dir</span>)
      <span class="ruby-keyword kw">end</span>
      <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Icon #{@iconname} exported successfully.&quot;</span>
      <span class="ruby-identifier">icon</span> = {
        <span class="ruby-value str">&quot;name&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@iconname</span>,
        <span class="ruby-value str">&quot;context&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@context</span>,
        <span class="ruby-value str">&quot;sizes&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">exported_sizes</span>
      }
      <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">icon</span>
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>