Sha256: c327977dc609d32ec47d26ea9305baa54180abc83474b0efc3161a555c422589
Contents?: true
Size: 1.96 KB
Versions: 4
Compression:
Stored size: 1.96 KB
Contents
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>dump (Keystone::Os::AbstractOs)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <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/keystone/os/abstract_os.rb, line 22</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump</span> <span class="ruby-identifier">self_methods</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">methods</span> <span class="ruby-operator">-</span> <span class="ruby-constant">Class</span>.<span class="ruby-identifier">methods</span> <span class="ruby-identifier">self_methods</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"version="</span>) <span class="ruby-identifier">self_methods</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"dump"</span>) <span class="ruby-identifier">st</span> = <span class="ruby-value str">""</span> <span class="ruby-identifier">self_methods</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">method</span><span class="ruby-operator">|</span> <span class="ruby-identifier">st</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"== #{method} ==\n #{self.__send__(method).to_s.split("\n").join("\n ")}\n"</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">st</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
4 entries across 4 versions & 1 rubygems