Sha256: 26b4f7c811945ae2e34ff03b678850c120081b9803d44d1903bb7474fd170634

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 KB

Contents

<?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>format= (SimpleMapper::Base)</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/simple_mapper/base.rb, line 21</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format=</span>(<span class="ruby-identifier">format</span>)
        <span class="ruby-ivar">@format_name</span> = <span class="ruby-identifier">format</span>.<span class="ruby-identifier">to_s</span>
        <span class="ruby-identifier">require</span> <span class="ruby-node">&quot;#{File.dirname(__FILE__)}/formats/#{@format_name}_format&quot;</span>
        <span class="ruby-ivar">@format</span> = <span class="ruby-constant">Object</span>.<span class="ruby-identifier">module_eval</span>(<span class="ruby-node">&quot;::SimpleMapper::#{@format_name.camelize}Format&quot;</span>, <span class="ruby-keyword kw">__FILE__</span>, <span class="ruby-keyword kw">__LINE__</span>)
        <span class="ruby-identifier">include</span> <span class="ruby-ivar">@format</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplemapper-0.0.1 doc/classes/SimpleMapper/Base.src/M000067.html