Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ doc, + lots of specs

  • Loading branch information...
commit c0a9f79c960d39837959fb05f61bdd4a76e47e32 1 parent 8bfec9f
@floere authored
Showing with 3,748 additions and 26 deletions.
  1. +2 −2 Rakefile
  2. +228 −0 doc/classes/E164.html
  3. +18 −0 doc/classes/E164.src/M000003.html
  4. +21 −0 doc/classes/E164.src/M000004.html
  5. +21 −0 doc/classes/E164.src/M000005.html
  6. +20 −0 doc/classes/E164.src/M000006.html
  7. +157 −0 doc/classes/E164/NDC.html
  8. +22 −0 doc/classes/E164/NDC.src/M000007.html
  9. +113 −0 doc/classes/E164/NDC/Austria.html
  10. +157 −0 doc/classes/E164/NDC/FixedSize.html
  11. +18 −0 doc/classes/E164/NDC/FixedSize.src/M000011.html
  12. +19 −0 doc/classes/E164/NDC/FixedSize.src/M000012.html
  13. +113 −0 doc/classes/E164/NDC/Germany.html
  14. +201 −0 doc/classes/E164/NDC/Prefix.html
  15. +26 −0 doc/classes/E164/NDC/Prefix.src/M000008.html
  16. +18 −0 doc/classes/E164/NDC/Prefix.src/M000009.html
  17. +18 −0 doc/classes/E164/NDC/Prefix.src/M000010.html
  18. +285 −0 doc/classes/E164/NDC/Splitter.html
  19. +19 −0 doc/classes/E164/NDC/Splitter.src/M000013.html
  20. +19 −0 doc/classes/E164/NDC/Splitter.src/M000014.html
  21. +19 −0 doc/classes/E164/NDC/Splitter.src/M000015.html
  22. +23 −0 doc/classes/E164/NDC/Splitter.src/M000016.html
  23. +18 −0 doc/classes/E164/NDC/Splitter.src/M000017.html
  24. +18 −0 doc/classes/E164/NDC/Splitter.src/M000018.html
  25. +203 −0 doc/classes/SpecHelperExtensions.html
  26. +29 −0 doc/classes/SpecHelperExtensions.src/M000001.html
  27. +18 −0 doc/classes/SpecHelperExtensions.src/M000002.html
  28. +1 −0  doc/created.rid
  29. +115 −0 doc/files/lib/e164_rb.html
  30. +107 −0 doc/files/lib/ndc/austria_rb.html
  31. +107 −0 doc/files/lib/ndc/fixed_size_rb.html
  32. +111 −0 doc/files/lib/ndc/germany_rb.html
  33. +115 −0 doc/files/lib/ndc/prefix_rb.html
  34. +107 −0 doc/files/lib/ndc/splitter_rb.html
  35. +101 −0 doc/files/spec/lib/e164_spec_rb.html
  36. +101 −0 doc/files/spec/lib/ndc/austria_spec_rb.html
  37. +101 −0 doc/files/spec/lib/ndc/fixed_size_spec_rb.html
  38. +101 −0 doc/files/spec/lib/ndc/germany_spec_rb.html
  39. +101 −0 doc/files/spec/lib/ndc/prefix_spec_rb.html
  40. +101 −0 doc/files/spec/lib/ndc/splitter_spec_rb.html
  41. +101 −0 doc/files/spec/spec_helper_extensions_rb.html
  42. +116 −0 doc/files/spec/spec_helper_rb.html
  43. +27 −0 doc/fr_class_index.html
  44. +27 −0 doc/fr_file_index.html
  45. +28 −0 doc/fr_method_index.html
  46. +24 −0 doc/index.html
  47. +208 −0 doc/rdoc-style.css
  48. +8 −4 lib/e164.rb
  49. BIN  pkg/e164-0.0.4.gem
  50. +93 −1 spec/lib/e164_spec.rb
  51. +24 −19 spec/spec_helper_extensions.rb
View
4 Rakefile
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = 'e164'
- s.version = '0.0.3'
+ s.version = '0.0.4'
s.author = 'Florian Hanke'
s.email = 'florian.hanke+e164@gmail.com'
s.homepage = 'github.com/floere'
@@ -18,7 +18,7 @@ end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
-end
+end
# Speccin'
View
228 doc/classes/E164.html
@@ -0,0 +1,228 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: E164</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">E164</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/e164_rb.html">
+ lib/e164.rb
+ </a>
+ <br />
+ <a href="../files/lib/ndc/austria_rb.html">
+ lib/ndc/austria.rb
+ </a>
+ <br />
+ <a href="../files/lib/ndc/fixed_size_rb.html">
+ lib/ndc/fixed_size.rb
+ </a>
+ <br />
+ <a href="../files/lib/ndc/germany_rb.html">
+ lib/ndc/germany.rb
+ </a>
+ <br />
+ <a href="../files/lib/ndc/prefix_rb.html">
+ lib/ndc/prefix.rb
+ </a>
+ <br />
+ <a href="../files/lib/ndc/splitter_rb.html">
+ lib/ndc/splitter.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+Splits a national number into a <a href="E164.html#M000003">fixed</a> size
+<a href="E164/NDC.html">NDC</a> and rest.
+</p>
+
+ </div>
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000003">fixed</a>&nbsp;&nbsp;
+ <a href="#M000005">formatted</a>&nbsp;&nbsp;
+ <a href="#M000006">normalize</a>&nbsp;&nbsp;
+ <a href="#M000004">split</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+ <div id="includes">
+ <h3 class="section-bar">Included Modules</h3>
+
+ <div id="includes-list">
+ <span class="include-name"><a href="E164/NDC.html">NDC</a></span>
+ </div>
+ </div>
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Module <a href="E164/NDC.html" class="link">E164::NDC</a><br />
+
+ </div>
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000003" class="method-detail">
+ <a name="M000003"></a>
+
+ <div class="method-heading">
+ <a href="E164.src/M000003.html" target="Code" class="method-signature"
+ onclick="popupCode('E164.src/M000003.html');return false;">
+ <span class="method-name">fixed</span><span class="method-args">(national_code_length = 2, options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns a <a href="E164.html#M000003">fixed</a> ndc splitter.
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000005" class="method-detail">
+ <a name="M000005"></a>
+
+ <div class="method-heading">
+ <a href="E164.src/M000005.html" target="Code" class="method-signature"
+ onclick="popupCode('E164.src/M000005.html');return false;">
+ <span class="method-name">formatted</span><span class="method-args">(phone_number, options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Formats a <a href="E164.html">E164</a> number according to local customs.
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000006" class="method-detail">
+ <a name="M000006"></a>
+
+ <div class="method-heading">
+ <a href="E164.src/M000006.html" target="Code" class="method-signature"
+ onclick="popupCode('E164.src/M000006.html');return false;">
+ <span class="method-name">normalize</span><span class="method-args">(phone_number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Normalizes
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000004" class="method-detail">
+ <a name="M000004"></a>
+
+ <div class="method-heading">
+ <a href="E164.src/M000004.html" target="Code" class="method-signature"
+ onclick="popupCode('E164.src/M000004.html');return false;">
+ <span class="method-name">split</span><span class="method-args">(phone_number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Splits the phone number into pieces according to the country codes above.
+</p>
+ </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>
View
18 doc/classes/E164.src/M000003.html
@@ -0,0 +1,18 @@
+<?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>fixed (E164)</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/e164.rb, line 22</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fixed</span>(<span class="ruby-identifier">national_code_length</span> = <span class="ruby-value">2</span>, <span class="ruby-identifier">options</span> = {})
+ <span class="ruby-constant">NDC</span>.<span class="ruby-identifier">fixed</span>(<span class="ruby-identifier">national_code_length</span>, <span class="ruby-identifier">options</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
21 doc/classes/E164.src/M000004.html
@@ -0,0 +1,21 @@
+<?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>split (E164)</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/e164.rb, line 377</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-identifier">phone_number</span>)
+ <span class="ruby-identifier">splitter_or_number</span>, <span class="ruby-identifier">country_code</span>, <span class="ruby-identifier">ndc</span>, <span class="ruby-identifier">local</span> = <span class="ruby-identifier">split_cc_ndc</span> <span class="ruby-identifier">phone_number</span>
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">splitter_or_number</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">local</span>.<span class="ruby-identifier">nil?</span>
+
+ [<span class="ruby-identifier">country_code</span>, <span class="ruby-identifier">ndc</span>, <span class="ruby-identifier">splitter_or_number</span>.<span class="ruby-identifier">split_local</span>(<span class="ruby-identifier">local</span>)].<span class="ruby-identifier">flatten</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
21 doc/classes/E164.src/M000005.html
@@ -0,0 +1,21 @@
+<?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>formatted (E164)</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/e164.rb, line 386</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">formatted</span>(<span class="ruby-identifier">phone_number</span>, <span class="ruby-identifier">options</span> = {})
+ <span class="ruby-identifier">splitter_or_number</span>, <span class="ruby-identifier">cc</span>, <span class="ruby-identifier">ndc</span>, <span class="ruby-identifier">local</span> = <span class="ruby-identifier">split_cc_ndc</span> <span class="ruby-identifier">phone_number</span>
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">splitter_or_number</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">local</span>.<span class="ruby-identifier">nil?</span>
+
+ <span class="ruby-identifier">formatted_cc_ndc</span>(<span class="ruby-identifier">cc</span>, <span class="ruby-identifier">ndc</span>, <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:format</span>]) <span class="ruby-operator">+</span> <span class="ruby-identifier">splitter_or_number</span>.<span class="ruby-identifier">locally_formatted</span>(<span class="ruby-identifier">local</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
20 doc/classes/E164.src/M000006.html
@@ -0,0 +1,20 @@
+<?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>normalize (E164)</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/e164.rb, line 395</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">normalize</span>(<span class="ruby-identifier">phone_number</span>)
+ <span class="ruby-identifier">phone_number</span> = <span class="ruby-identifier">phone_number</span>.<span class="ruby-identifier">dup</span>
+ <span class="ruby-identifier">phone_number</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\D*/</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/^0+/</span>, <span class="ruby-value str">''</span>) <span class="ruby-comment cmt"># Remove zeros at the beginning and non-digit chars</span>
+ <span class="ruby-identifier">remove_relative_zeros!</span> <span class="ruby-identifier">phone_number</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
157 doc/classes/E164/NDC.html
@@ -0,0 +1,157 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: E164::NDC</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">E164::NDC</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/ndc/austria_rb.html">
+ lib/ndc/austria.rb
+ </a>
+ <br />
+ <a href="../../files/lib/ndc/fixed_size_rb.html">
+ lib/ndc/fixed_size.rb
+ </a>
+ <br />
+ <a href="../../files/lib/ndc/germany_rb.html">
+ lib/ndc/germany.rb
+ </a>
+ <br />
+ <a href="../../files/lib/ndc/prefix_rb.html">
+ lib/ndc/prefix.rb
+ </a>
+ <br />
+ <a href="../../files/lib/ndc/splitter_rb.html">
+ lib/ndc/splitter.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000007">fixed</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Class <a href="NDC/Austria.html" class="link">E164::NDC::Austria</a><br />
+Class <a href="NDC/FixedSize.html" class="link">E164::NDC::FixedSize</a><br />
+Class <a href="NDC/Germany.html" class="link">E164::NDC::Germany</a><br />
+Class <a href="NDC/Prefix.html" class="link">E164::NDC::Prefix</a><br />
+Class <a href="NDC/Splitter.html" class="link">E164::NDC::Splitter</a><br />
+
+ </div>
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000007" class="method-detail">
+ <a name="M000007"></a>
+
+ <div class="method-heading">
+ <a href="NDC.src/M000007.html" target="Code" class="method-signature"
+ onclick="popupCode('NDC.src/M000007.html');return false;">
+ <span class="method-name">fixed</span><span class="method-args">(national_code_length = 2, options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </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>
View
22 doc/classes/E164/NDC.src/M000007.html
@@ -0,0 +1,22 @@
+<?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>fixed (E164::NDC)</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/ndc/fixed_size.rb, line 6</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fixed</span>(<span class="ruby-identifier">national_code_length</span> = <span class="ruby-value">2</span>, <span class="ruby-identifier">options</span> = {})
+ <span class="ruby-identifier">klass</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">FixedSize</span>)
+ <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">national_code_length</span> <span class="ruby-identifier">national_code_length</span>
+ <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">format</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:format</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">'%s %s %s'</span>
+ <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">local</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:local</span>] <span class="ruby-operator">||</span> [<span class="ruby-value">3</span>, <span class="ruby-value">2</span>, <span class="ruby-value">2</span>]
+ <span class="ruby-identifier">klass</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
113 doc/classes/E164/NDC/Austria.html
@@ -0,0 +1,113 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: E164::NDC::Austria</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </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">E164::NDC::Austria</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../files/lib/ndc/austria_rb.html">
+ lib/ndc/austria.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ <a href="Prefix.html">
+ Prefix
+ </a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
View
157 doc/classes/E164/NDC/FixedSize.html
@@ -0,0 +1,157 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: E164::NDC::FixedSize</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </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">E164::NDC::FixedSize</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../files/lib/ndc/fixed_size_rb.html">
+ lib/ndc/fixed_size.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ <a href="Splitter.html">
+ Splitter
+ </a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000011">national_code_length</a>&nbsp;&nbsp;
+ <a href="#M000012">split_ndc</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000011" class="method-detail">
+ <a name="M000011"></a>
+
+ <div class="method-heading">
+ <a href="FixedSize.src/M000011.html" target="Code" class="method-signature"
+ onclick="popupCode('FixedSize.src/M000011.html');return false;">
+ <span class="method-name">national_code_length</span><span class="method-args">(length)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000012" class="method-detail">
+ <a name="M000012"></a>
+
+ <div class="method-heading">
+ <a href="FixedSize.src/M000012.html" target="Code" class="method-signature"
+ onclick="popupCode('FixedSize.src/M000012.html');return false;">
+ <span class="method-name">split_ndc</span><span class="method-args">(number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+A faster split method than the prefix splitter offers.
+</p>
+ </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>
View
18 doc/classes/E164/NDC/FixedSize.src/M000011.html
@@ -0,0 +1,18 @@
+<?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>national_code_length (E164::NDC::FixedSize)</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/ndc/fixed_size.rb, line 16</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">national_code_length</span>(<span class="ruby-identifier">length</span>)
+ <span class="ruby-ivar">@national_code_length</span> = <span class="ruby-identifier">length</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
19 doc/classes/E164/NDC/FixedSize.src/M000012.html
@@ -0,0 +1,19 @@
+<?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>split_ndc (E164::NDC::FixedSize)</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/ndc/fixed_size.rb, line 22</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split_ndc</span>(<span class="ruby-identifier">number</span>)
+ <span class="ruby-identifier">number</span> = <span class="ruby-identifier">number</span>.<span class="ruby-identifier">dup</span>
+ [<span class="ruby-identifier">number</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-ivar">@national_code_length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>), <span class="ruby-identifier">number</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
113 doc/classes/E164/NDC/Germany.html
@@ -0,0 +1,113 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: E164::NDC::Germany</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </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">E164::NDC::Germany</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../files/lib/ndc/germany_rb.html">
+ lib/ndc/germany.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ <a href="Prefix.html">
+ Prefix
+ </a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
View
201 doc/classes/E164/NDC/Prefix.html
@@ -0,0 +1,201 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: E164::NDC::Prefix</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </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">E164::NDC::Prefix</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../files/lib/ndc/prefix_rb.html">
+ lib/ndc/prefix.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ <a href="Splitter.html">
+ Splitter
+ </a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000009">length</a>&nbsp;&nbsp;
+ <a href="#M000010">ndcs</a>&nbsp;&nbsp;
+ <a href="#M000008">split_ndc</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000008" class="method-detail">
+ <a name="M000008"></a>
+
+ <div class="method-heading">
+ <a href="Prefix.src/M000008.html" target="Code" class="method-signature"
+ onclick="popupCode('Prefix.src/M000008.html');return false;">
+ <span class="method-name">split_ndc</span><span class="method-args">(number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Splits the number into ndc and rest.
+</p>
+ </div>
+ </div>
+
+ <h3 class="section-bar">Protected Class methods</h3>
+
+ <div id="method-M000009" class="method-detail">
+ <a name="M000009"></a>
+
+ <div class="method-heading">
+ <a href="Prefix.src/M000009.html" target="Code" class="method-signature"
+ onclick="popupCode('Prefix.src/M000009.html');return false;">
+ <span class="method-name">length</span><span class="method-args">(range)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Define the <a href="Prefix.html#M000009">length</a> range for the
+country&#8216;s <a href="Prefix.html#M000010">ndcs</a>.
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000010" class="method-detail">
+ <a name="M000010"></a>
+
+ <div class="method-heading">
+ <a href="Prefix.src/M000010.html" target="Code" class="method-signature"
+ onclick="popupCode('Prefix.src/M000010.html');return false;">
+ <span class="method-name">ndcs</span><span class="method-args">(*ndcs_ary)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Define the list of NDCs.
+</p>
+<p>
+Note: For optimization, if the country has a max ndc <a
+href="Prefix.html#M000009">length</a> of 4,
+</p>
+<pre>
+ only enter ndcs up to the length of 3 letters.
+ If the algorithm fails to match an ndc, it will assume it is a 4 digit ndc.
+</pre>
+<p>
+e.g. We have NDCs &#8216;1&#8217;, &#8216;22&#8217;, &#8216;333&#8217;, and
+&#8216;4444&#8217;.
+</p>
+<pre>
+ Only set
+ ndcs '1', '22', '333'
+ and
+ length 1..4
+ '4444' will be &quot;recognized&quot; because the algorithm does not find a shorter ndc (assuming it
+ is a correct prefix code) and stop at the max ndc length of 4, given by the length method.
+</pre>
+ </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>
View
26 doc/classes/E164/NDC/Prefix.src/M000008.html
@@ -0,0 +1,26 @@
+<?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>split_ndc (E164::NDC::Prefix)</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/ndc/prefix.rb, line 14</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split_ndc</span>(<span class="ruby-identifier">number</span>)
+ <span class="ruby-identifier">number</span> = <span class="ruby-identifier">number</span>.<span class="ruby-identifier">dup</span>
+ <span class="ruby-identifier">presumed_code</span> = <span class="ruby-value str">''</span>
+ <span class="ruby-identifier">presumed_code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">number</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-ivar">@min_ndc_length</span><span class="ruby-operator">-</span><span class="ruby-value">2</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@min_ndc_length</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@min_ndc_length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>
+ (<span class="ruby-ivar">@min_ndc_length</span> <span class="ruby-operator">||</span> <span class="ruby-value">1</span>).<span class="ruby-identifier">upto</span>(<span class="ruby-ivar">@max_ndc_length</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">presumed_code</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">number</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">0</span>)
+ <span class="ruby-identifier">sized_ndcs</span> = <span class="ruby-ivar">@ndcs</span>[<span class="ruby-identifier">i</span>]
+ <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">sized_ndcs</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">sized_ndcs</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">presumed_code</span>)
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">return</span> [<span class="ruby-identifier">presumed_code</span>, <span class="ruby-identifier">number</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
18 doc/classes/E164/NDC/Prefix.src/M000009.html
@@ -0,0 +1,18 @@
+<?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>length (E164::NDC::Prefix)</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/ndc/prefix.rb, line 30</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">length</span>(<span class="ruby-identifier">range</span>)
+ <span class="ruby-ivar">@min_ndc_length</span>, <span class="ruby-ivar">@max_ndc_length</span> = <span class="ruby-identifier">range</span>.<span class="ruby-identifier">min</span>, <span class="ruby-identifier">range</span>.<span class="ruby-identifier">max</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
18 doc/classes/E164/NDC/Prefix.src/M000010.html
@@ -0,0 +1,18 @@
+<?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>ndcs (E164::NDC::Prefix)</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/ndc/prefix.rb, line 48</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ndcs</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">ndcs_ary</span>)
+ <span class="ruby-ivar">@ndcs</span> = <span class="ruby-identifier">optimize</span>(<span class="ruby-identifier">ndcs_ary</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
285 doc/classes/E164/NDC/Splitter.html
@@ -0,0 +1,285 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: E164::NDC::Splitter</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </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">E164::NDC::Splitter</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../../files/lib/ndc/splitter_rb.html">
+ lib/ndc/splitter.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>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000014">format</a>&nbsp;&nbsp;
+ <a href="#M000017">formatted</a>&nbsp;&nbsp;
+ <a href="#M000013">local</a>&nbsp;&nbsp;
+ <a href="#M000018">locally_formatted</a>&nbsp;&nbsp;
+ <a href="#M000015">split</a>&nbsp;&nbsp;
+ <a href="#M000016">split_local</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000014" class="method-detail">
+ <a name="M000014"></a>
+
+ <div class="method-heading">
+ <a href="Splitter.src/M000014.html" target="Code" class="method-signature"
+ onclick="popupCode('Splitter.src/M000014.html');return false;">
+ <span class="method-name">format</span><span class="method-args">(format)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Define a <a href="Splitter.html#M000014">format</a> for the country&#8216;s
+<a href="Splitter.html#M000013">local</a> <a
+href="Splitter.html#M000014">format</a>, converting spaces to non breaking
+spaces.
+</p>
+<p>
+Examples
+</p>
+<ul>
+<li><a href="Splitter.html#M000014">format</a> &#8217;%s %s %s&#8217; #
+Switzerland, spaces between the groups, e.g. 364˽35˽32
+
+</li>
+<li><a href="Splitter.html#M000014">format</a> &#8217;%s-%s-%s&#8217; # Hyphens
+between the groups, e.g. 555-12-34
+
+</li>
+</ul>
+ </div>
+ </div>
+
+ <div id="method-M000017" class="method-detail">
+ <a name="M000017"></a>
+
+ <div class="method-heading">
+ <a href="Splitter.src/M000017.html" target="Code" class="method-signature"
+ onclick="popupCode('Splitter.src/M000017.html');return false;">
+ <span class="method-name">formatted</span><span class="method-args">(number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Formats the given <a href="../../E164.html">E164</a> Number (<a
+href="../NDC.html">NDC</a>-Local without CC) according to the country
+specific <a href="Splitter.html#M000014">format</a> / ndcs splitting.
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000013" class="method-detail">
+ <a name="M000013"></a>
+
+ <div class="method-heading">
+ <a href="Splitter.src/M000013.html" target="Code" class="method-signature"
+ onclick="popupCode('Splitter.src/M000013.html');return false;">
+ <span class="method-name">local</span><span class="method-args">(*split_sizes)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Sets the <a href="Splitter.html#M000013">local</a> grouping <a
+href="Splitter.html#M000014">format</a>.
+</p>
+<p>
+Examples
+</p>
+<ul>
+<li><a href="Splitter.html#M000013">local</a> 3, 2, 2 # Switzerland, 364 35 33,
+thus: 3-2-2.
+
+</li>
+<li><a href="Splitter.html#M000013">local</a> 2, 2, 2, 2 # France, 12 34 56 78,
+thus: 2-2-2-2
+
+</li>
+</ul>
+ </div>
+ </div>
+
+ <div id="method-M000018" class="method-detail">
+ <a name="M000018"></a>
+
+ <div class="method-heading">
+ <a href="Splitter.src/M000018.html" target="Code" class="method-signature"
+ onclick="popupCode('Splitter.src/M000018.html');return false;">
+ <span class="method-name">locally_formatted</span><span class="method-args">(local_number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Formats the given <a href="Splitter.html#M000013">local</a> number
+according to the country specific <a
+href="Splitter.html#M000014">format</a>.
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000015" class="method-detail">
+ <a name="M000015"></a>
+
+ <div class="method-heading">
+ <a href="Splitter.src/M000015.html" target="Code" class="method-signature"
+ onclick="popupCode('Splitter.src/M000015.html');return false;">
+ <span class="method-name">split</span><span class="method-args">(number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Split an <a href="../../E164.html">E164</a> number without country code
+into its <a href="../NDC.html">NDC</a>-Local parts.
+</p>
+<p>
+Examples
+</p>
+<ul>
+<li><a href="Splitter.html#M000015">split</a> &#8216;443643533&#8217; # =&gt;
+[&#8216;44&#8217;, &#8216;364&#8217;, &#8216;35&#8217;, &#8216;33&#8217;] #
+(Switzerland)
+
+</li>
+</ul>
+ </div>
+ </div>
+
+ <div id="method-M000016" class="method-detail">
+ <a name="M000016"></a>
+
+ <div class="method-heading">
+ <a href="Splitter.src/M000016.html" target="Code" class="method-signature"
+ onclick="popupCode('Splitter.src/M000016.html');return false;">
+ <span class="method-name">split_local</span><span class="method-args">(number)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Split a <a href="Splitter.html#M000013">local</a> number according to an
+assumed country specific <a href="Splitter.html#M000014">format</a>.
+</p>
+<p>
+Examples
+</p>
+<ul>
+<li><a href="Splitter.html#M000015">split</a> &#8216;3643533&#8217; # =&gt;
+[&#8216;364&#8217;, &#8216;35&#8217;, &#8216;33&#8217;] # (Switzerland)
+
+</li>
+</ul>
+ </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>
View
19 doc/classes/E164/NDC/Splitter.src/M000013.html
@@ -0,0 +1,19 @@
+<?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>local (E164::NDC::Splitter)</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/ndc/splitter.rb, line 13</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">local</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">split_sizes</span>)
+ <span class="ruby-ivar">@split_sizes</span> = <span class="ruby-identifier">split_sizes</span>.<span class="ruby-identifier">flatten</span>
+ <span class="ruby-identifier">format</span>(([<span class="ruby-value str">'%s'</span>]<span class="ruby-operator">*</span><span class="ruby-ivar">@split_sizes</span>.<span class="ruby-identifier">size</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>))
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
19 doc/classes/E164/NDC/Splitter.src/M000014.html
@@ -0,0 +1,19 @@
+<?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>format (E164::NDC::Splitter)</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/ndc/splitter.rb, line 24</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">format</span>(<span class="ruby-identifier">format</span>)
+ <span class="ruby-ivar">@format</span> = <span class="ruby-identifier">format</span>
+ <span class="ruby-ivar">@format_with_ndc</span> = <span class="ruby-value str">'%s '</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@format</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
19 doc/classes/E164/NDC/Splitter.src/M000015.html
@@ -0,0 +1,19 @@
+<?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>split (E164::NDC::Splitter)</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/ndc/splitter.rb, line 34</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split</span>(<span class="ruby-identifier">number</span>)
+ <span class="ruby-identifier">ndc_part</span> = <span class="ruby-identifier">split_ndc</span>(<span class="ruby-identifier">number</span>)
+ [<span class="ruby-identifier">ndc_part</span>, <span class="ruby-identifier">split_local</span>(<span class="ruby-identifier">ndc_part</span>.<span class="ruby-identifier">pop</span>)].<span class="ruby-identifier">flatten</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
23 doc/classes/E164/NDC/Splitter.src/M000016.html
@@ -0,0 +1,23 @@
+<?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>split_local (E164::NDC::Splitter)</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/ndc/splitter.rb, line 44</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">split_local</span>(<span class="ruby-identifier">number</span>)
+ <span class="ruby-identifier">local</span> = []
+ <span class="ruby-ivar">@split_sizes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">size</span><span class="ruby-operator">|</span>
+ <span class="ruby-identifier">local</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">number</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
+ <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">number</span>.<span class="ruby-identifier">empty?</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-identifier">local</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
18 doc/classes/E164/NDC/Splitter.src/M000017.html
@@ -0,0 +1,18 @@
+<?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>formatted (E164::NDC::Splitter)</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/ndc/splitter.rb, line 55</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">formatted</span>(<span class="ruby-identifier">number</span>)
+ <span class="ruby-ivar">@format_with_ndc</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">split</span>(<span class="ruby-identifier">number</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
18 doc/classes/E164/NDC/Splitter.src/M000018.html
@@ -0,0 +1,18 @@
+<?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>locally_formatted (E164::NDC::Splitter)</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/ndc/splitter.rb, line 61</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">locally_formatted</span>(<span class="ruby-identifier">local_number</span>)
+ <span class="ruby-ivar">@format</span> <span class="ruby-operator">%</span> <span class="ruby-identifier">split_local</span>(<span class="ruby-identifier">local_number</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
203 doc/classes/SpecHelperExtensions.html
@@ -0,0 +1,203 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: SpecHelperExtensions</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">SpecHelperExtensions</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/spec/spec_helper_extensions_rb.html">
+ spec/spec_helper_extensions.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000002">in_the</a>&nbsp;&nbsp;
+ <a href="#M000001">shared</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000002" class="method-detail">
+ <a name="M000002"></a>
+
+ <div class="method-heading">
+ <a href="SpecHelperExtensions.src/M000002.html" target="Code" class="method-signature"
+ onclick="popupCode('SpecHelperExtensions.src/M000002.html');return false;">
+ <span class="method-name">in_the</span><span class="method-args">(instance, &amp;block)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Used to test private methods.
+</p>
+<p>
+The idea is to replace
+</p>
+<pre>
+ instance.send :private_method.
+</pre>
+<p>
+with
+</p>
+<pre>
+ in_the instance do
+ private_method
+ end
+</pre>
+<p>
+Note: Now it is rather like &quot;We have the scenario that we are in the
+given instance.&quot;
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000001" class="method-detail">
+ <a name="M000001"></a>
+
+ <div class="method-heading">
+ <a href="SpecHelperExtensions.src/M000001.html" target="Code" class="method-signature"
+ onclick="popupCode('SpecHelperExtensions.src/M000001.html');return false;">
+ <span class="method-name">shared</span><span class="method-args">(name, &amp;block)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Allows the definition of &quot;describe-wide&quot; examples and describes.
+</p>
+<p>
+Case for &quot;it&quot;. Use in the describe block
+</p>
+<pre>
+ shared :it_should_behave_like_having_a_labels_class do
+ response.should have_tag('.labels')
+ end
+</pre>
+<p>
+Then, call it in the describe block or nested describe blocks as such
+</p>
+<pre>
+ it_should_behave_like_having_a_labels_class
+</pre>
+<p>
+Case for &quot;describe&quot;. Use in the describe block
+</p>
+<pre>
+ shared :describe_an_update_stream_item do
+ before(:each) do
+ # ...
+ end
+ it &quot;bla&quot; do
+ response.should have_tag('.labels')
+ end
+ end
+</pre>
+<p>
+Then, call it in the describe block or nested describe blocks as such
+</p>
+<pre>
+ describe_an_update_stream_item
+</pre>
+ </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>
View
29 doc/classes/SpecHelperExtensions.src/M000001.html
@@ -0,0 +1,29 @@
+<?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>shared (SpecHelperExtensions)</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 spec/spec_helper_extensions.rb, line 24</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shared</span>(<span class="ruby-identifier">name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>
+ <span class="ruby-identifier">define_method</span> <span class="ruby-identifier">name</span> <span class="ruby-keyword kw">do</span>
+ <span class="ruby-identifier">name_ary</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'_'</span>)
+ <span class="ruby-identifier">method_name</span> = <span class="ruby-identifier">name_ary</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">to_sym</span>
+ <span class="ruby-identifier">descr_name</span> = <span class="ruby-identifier">name_ary</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">join</span>(<span class="ruby-value str">&quot; &quot;</span>)
+ <span class="ruby-keyword kw">if</span> [<span class="ruby-identifier">:describe</span>, <span class="ruby-identifier">:it</span>].<span class="ruby-identifier">include?</span> <span class="ruby-identifier">method_name</span>
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">method_name</span>, <span class="ruby-identifier">descr_name</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;Shared it or describe needs to start with 'it_' or 'describe_'.&quot;</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
18 doc/classes/SpecHelperExtensions.src/M000002.html
@@ -0,0 +1,18 @@
+<?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>in_the (SpecHelperExtensions)</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 spec/spec_helper_extensions.rb, line 50</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in_the</span>(<span class="ruby-identifier">instance</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
View
1  doc/created.rid
@@ -0,0 +1 @@
+Tue, 09 Sep 2008 10:02:52 +0200
View
115 doc/files/lib/e164_rb.html
@@ -0,0 +1,115 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: e164.rb</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="fileHeader">
+ <h1>e164.rb</h1>
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Path:</strong></td>
+ <td>lib/e164.rb
+ </td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>Last Update:</strong></td>
+ <td>Mon Sep 08 16:31:05 +0200 2008</td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+ <div id="requires-list">
+ <h3 class="section-bar">Required files</h3>
+
+ <div class="name-list">
+ rubygems&nbsp;&nbsp;
+ active_support&nbsp;&nbsp;
+ ndc/splitter&nbsp;&nbsp;
+ ndc/fixed_size&nbsp;&nbsp;
+ ndc/prefix&nbsp;&nbsp;
+ ndc/austria&nbsp;&nbsp;
+ ndc/germany&nbsp;&nbsp;
+ e164&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
View
107 doc/files/lib/ndc/austria_rb.html
@@ -0,0 +1,107 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: austria.rb</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ 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>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="fileHeader">
+ <h1>austria.rb</h1>
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Path:</strong></td>
+ <td>lib/ndc/austria.rb
+ </td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>Last Update:</strong></td>
+ <td>Fri Sep 05 17:54:02 +0200 2008</td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+Splits a national number into a fixed size NDC and rest.
+</p>
+
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
View
107 doc/files/lib/ndc/fixed_size_rb.html
@@ -0,0 +1,107 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: fixed_size.rb</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <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[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")