Sha256: aa487b8092ccab3a34a5ce7b85bd90e18a300c8dfe7344da5b7abf78a86c9974

Contents?: true

Size: 1.27 KB

Versions: 5

Compression:

Stored size: 1.27 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>version (Grit)</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/grit.rb, line 71</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">version</span>
    <span class="ruby-identifier">yml</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-operator">*</span><span class="ruby-node">%w[.. VERSION.yml]</span>)))
    <span class="ruby-node">&quot;#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}&quot;</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ginst-2009.12.8 vendor/plugins/grit/doc/classes/Grit.src/M000220.html
ginst-2009.11.24 vendor/plugins/grit/doc/classes/Grit.src/M000220.html
ginst-2009.11.23 vendor/plugins/grit/doc/classes/Grit.src/M000220.html
ginst-2.0.1 vendor/plugins/grit/doc/classes/Grit.src/M000220.html
ginst-2.0.0 vendor/plugins/grit/doc/classes/Grit.src/M000220.html