Sha256: ceb7e92e9b329e6f3d240aceeeaa7d0f85cc7c2919739448d511f34a4a625905
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 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>identifier (SimpleMapper::SimpleModel::ClassMethods)</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/default_plugins/simple_model.rb, line 30</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">identifier</span>(<span class="ruby-identifier">id</span>=<span class="ruby-keyword kw">nil</span>) <span class="ruby-ivar">@identifier</span> = <span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-ivar">@identifier</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
3 entries across 3 versions & 1 rubygems