doc/classes/SDL4R/SdlBinary.html in sdl4r-0.9.4 vs doc/classes/SDL4R/SdlBinary.html in sdl4r-0.9.5
- old
+ new
@@ -1,14 +1,11 @@
-<?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">
-
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>Class: SDL4R::SdlBinary</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <title>Class: SDL4R::SdlBinary [RDoc: Simple Declarative Language for Ruby]</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[
@@ -23,61 +20,69 @@
elem = eval( "document.all." + id );
else
return false;
elemStyle = elem.style;
-
+
if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}
return true;
}
-
+
// Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
+
// ]]>
</script>
</head>
<body>
-
<div id="classHeader">
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Class</strong></td>
<td class="class-name-in-header">SDL4R::SdlBinary</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
+
+
<a href="../../files/lib/sdl4r/sdl_binary_rb.html">
+
lib/sdl4r/sdl_binary.rb
+
</a>
+
+
<br />
+
</td>
</tr>
+
<tr class="top-aligned-row">
<td><strong>Parent:</strong></td>
<td>
+
Object
+
</td>
</tr>
+
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
-
-
<div id="contextContent">
<div id="description">
<p>
Represents a binary value.
@@ -87,77 +92,93 @@
a binary literal.
</p>
</div>
-
</div>
+
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000056">==</a>
- <a href="#M000060">decode64</a>
- <a href="#M000057">eql?</a>
- <a href="#M000058">hash</a>
- <a href="#M000055">new</a>
- <a href="#M000059">to_s</a>
+
+ <a href="#M000084">==</a>
+
+ <a href="#M000088">decode64</a>
+
+ <a href="#M000085">eql?</a>
+
+ <a href="#M000086">hash</a>
+
+ <a href="#M000083">new</a>
+
+ <a href="#M000087">to_s</a>
+
</div>
</div>
</div>
-
<!-- if includes -->
<div id="section">
-
-
<div id="attribute-list">
<h3 class="section-bar">Attributes</h3>
<div class="name-list">
<table>
+
<tr class="top-aligned-row context-row">
<td class="context-item-name">bytes</td>
+
<td class="context-item-value"> [RW] </td>
+
<td class="context-item-desc"></td>
</tr>
+
</table>
</div>
</div>
-
<!-- if method_list -->
+
<div id="methods">
+
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000060" class="method-detail">
- <a name="M000060"></a>
+ <div id="method-M000088" class="method-detail">
+ <a name="M000088"></a>
+
<div class="method-heading">
- <a href="#M000060" class="method-signature">
+
+ <a href="#M000088" class="method-signature">
+
<span class="method-name">decode64</span><span class="method-args">(s)</span>
+
</a>
+
</div>
-
+
<div class="method-description">
+
<p>
Decodes the specified base-64 encoded string and returns a corresponding <a
href="SdlBinary.html">SdlBinary</a> instance. <tt>s</tt> might not include
the conventional starting and ending square brackets.
</p>
+
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000060-source">
+ onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000088-source">
<pre>
-<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 54</span>
+<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 57</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">decode64</span>(<span class="ruby-identifier">s</span>)
<span class="ruby-identifier">s</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"\n\r\t "</span>)
<span class="ruby-identifier">binary</span> = <span class="ruby-constant">Base64</span>.<span class="ruby-identifier">decode64</span>(<span class="ruby-identifier">s</span>)
@@ -167,137 +188,176 @@
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">SdlBinary</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">binary</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
+
</div>
</div>
- <div id="method-M000055" class="method-detail">
- <a name="M000055"></a>
+ <div id="method-M000083" class="method-detail">
+ <a name="M000083"></a>
+
<div class="method-heading">
- <a href="#M000055" class="method-signature">
+
+ <a href="#M000083" class="method-signature">
+
<span class="method-name">new</span><span class="method-args">(bytes)</span>
+
</a>
+
</div>
-
+
<div class="method-description">
+
<p>
<tt>value</tt>: a String containing the bytes
</p>
+
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000055-source">
+ onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000083-source">
<pre>
-<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 30</span>
+<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 33</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">bytes</span>)
<span class="ruby-ivar">@bytes</span> = <span class="ruby-identifier">bytes</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
+
</div>
</div>
+
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000056" class="method-detail">
- <a name="M000056"></a>
+ <div id="method-M000084" class="method-detail">
+ <a name="M000084"></a>
+
<div class="method-heading">
- <a href="#M000056" class="method-signature">
+
+ <a href="#M000084" class="method-signature">
+
<span class="method-name">==</span><span class="method-args">(o)</span>
+
</a>
+
</div>
-
+
<div class="method-description">
+
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000056-source">
+ onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000084-source">
<pre>
-<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 34</span>
+<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 37</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">o</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">equal?</span>(<span class="ruby-identifier">o</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>)
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bytes</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">o</span>.<span class="ruby-identifier">bytes</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
+
</div>
</div>
- <div id="method-M000057" class="method-detail">
- <a name="M000057"></a>
+ <div id="method-M000085" class="method-detail">
+ <a name="M000085"></a>
+
<div class="method-heading">
+
<span class="method-name">eql?</span><span class="method-args">(o)</span>
+
</div>
-
+
<div class="method-description">
+
<p>
Alias for #==
</p>
+
</div>
</div>
- <div id="method-M000058" class="method-detail">
- <a name="M000058"></a>
+ <div id="method-M000086" class="method-detail">
+ <a name="M000086"></a>
+
<div class="method-heading">
- <a href="#M000058" class="method-signature">
+
+ <a href="#M000086" class="method-signature">
+
<span class="method-name">hash</span><span class="method-args">()</span>
+
</a>
+
</div>
-
+
<div class="method-description">
+
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000058-source">
+ onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000086-source">
<pre>
-<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 42</span>
+<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 45</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash</span>
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">bytes</span>.<span class="ruby-identifier">hash</span>
<span class="ruby-keyword kw">end</span>
</pre>
</div>
+
</div>
</div>
- <div id="method-M000059" class="method-detail">
- <a name="M000059"></a>
+ <div id="method-M000087" class="method-detail">
+ <a name="M000087"></a>
+
<div class="method-heading">
- <a href="#M000059" class="method-signature">
+
+ <a href="#M000087" class="method-signature">
+
<span class="method-name">to_s</span><span class="method-args">()</span>
+
</a>
+
</div>
-
+
<div class="method-description">
+
<p>
Returns the bytes base64-encoded.
</p>
+
<p><a class="source-toggle" href="#"
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="M000059-source">
+ onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000087-source">
<pre>
-<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 47</span>
+<span class="ruby-comment cmt"># File lib/sdl4r/sdl_binary.rb, line 50</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Base64</span>.<span class="ruby-identifier">encode64</span>(<span class="ruby-identifier">bytes</span>)
<span class="ruby-keyword kw">end</span>
</pre>
</div>
+
</div>
</div>
+
</div>
- </div>
+ </div>
+
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
-</html>
\ No newline at end of file
+</html>