Sha256: b6e573837256df1699cf47501e42feec2cca1cf1dfd33fce3a30b3577e62a99d

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 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>require_local (Kernel)</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/facet/kernel/require_local.rb, line 6</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">require_local</span>( <span class="ruby-identifier">fname</span> )
    <span class="ruby-comment cmt">#fdir = File.expand_path( File.dirname( caller[0] ) )</span>
    <span class="ruby-identifier">fdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>( <span class="ruby-identifier">caller</span>[<span class="ruby-value">0</span>] )
    <span class="ruby-identifier">require</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>( <span class="ruby-identifier">fdir</span>, <span class="ruby-identifier">fname</span> )
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-0.6.3 doc/classes/Kernel.src/M000341.html
facets-0.7.0 doc/atomic-rdoc/classes/Kernel.src/M000320.html
facets-0.7.1 doc/atomic-rdoc/classes/Kernel.src/M000320.html
facets-0.7.2 doc/atomic-rdoc/classes/Kernel.src/M000323.html