quickbooks 0.0.7 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +10 -5
- data/Rakefile +4 -3
- data/doc/classes/Array.html +78 -247
- data/doc/classes/Array.src/{M000049.html → M000026.html} +1 -1
- data/doc/classes/Array.src/{M000050.html → M000027.html} +1 -1
- data/doc/classes/{Hash.src/M000030.html → Array.src/M000028.html} +4 -4
- data/doc/classes/Array.src/M000029.html +19 -0
- data/doc/classes/Array.src/M000030.html +18 -0
- data/doc/classes/Array.src/{M000042.html → M000031.html} +0 -0
- data/doc/classes/Array.src/{M000043.html → M000032.html} +0 -0
- data/doc/classes/Array.src/{M000044.html → M000033.html} +0 -0
- data/doc/classes/Array.src/{M000045.html → M000034.html} +1 -1
- data/doc/classes/Array.src/{M000046.html → M000035.html} +1 -1
- data/doc/classes/Array.src/{M000047.html → M000036.html} +1 -1
- data/doc/classes/Array.src/M000037.html +9 -4
- data/doc/classes/Array.src/M000038.html +4 -7
- data/doc/classes/Array.src/M000039.html +7 -4
- data/doc/classes/Array.src/M000040.html +4 -5
- data/doc/classes/Array.src/M000041.html +4 -4
- data/doc/classes/Class.html +10 -10
- data/doc/classes/Class.src/{M000075.html → M000042.html} +0 -0
- data/doc/classes/Class.src/{M000076.html → M000043.html} +1 -1
- data/doc/classes/Hash.html +124 -248
- data/doc/classes/Hash.src/M000001.html +18 -0
- data/doc/classes/Hash.src/M000002.html +21 -0
- data/doc/classes/Hash.src/M000003.html +18 -0
- data/doc/classes/Hash.src/M000004.html +7 -4
- data/doc/classes/Hash.src/M000005.html +4 -7
- data/doc/classes/Hash.src/M000006.html +6 -4
- data/doc/classes/Hash.src/M000007.html +4 -7
- data/doc/classes/Hash.src/M000008.html +8 -4
- data/doc/classes/Hash.src/M000009.html +4 -6
- data/doc/classes/Hash.src/M000010.html +7 -4
- data/doc/classes/Hash.src/M000011.html +9 -7
- data/doc/classes/Hash.src/M000012.html +4 -4
- data/doc/classes/Hash.src/M000013.html +4 -4
- data/doc/classes/Hash.src/M000014.html +4 -4
- data/doc/classes/Hash.src/M000015.html +4 -4
- data/doc/classes/Hash.src/M000016.html +4 -4
- data/doc/classes/Hash.src/M000017.html +5 -5
- data/doc/classes/Hash.src/M000018.html +13 -4
- data/doc/classes/Hash.src/M000019.html +6 -7
- data/doc/classes/Hash.src/M000020.html +4 -13
- data/doc/classes/Hash.src/M000021.html +4 -6
- data/doc/classes/Hash.src/M000022.html +4 -4
- data/doc/classes/Hash.src/M000023.html +4 -6
- data/doc/classes/Hash.src/M000024.html +4 -4
- data/doc/classes/Hash.src/M000025.html +14 -4
- data/doc/classes/Object.html +41 -41
- data/doc/classes/Object.src/{M000077.html → M000044.html} +0 -0
- data/doc/classes/Object.src/{M000078.html → M000045.html} +0 -0
- data/doc/classes/Object.src/{M000079.html → M000046.html} +1 -1
- data/doc/classes/Object.src/{M000080.html → M000047.html} +1 -1
- data/doc/classes/Object.src/{M000081.html → M000048.html} +1 -1
- data/doc/classes/Object.src/{M000082.html → M000049.html} +1 -1
- data/doc/classes/Object.src/{M000083.html → M000050.html} +1 -1
- data/doc/classes/Object.src/{M000084.html → M000051.html} +1 -1
- data/doc/classes/Qbxml/Request.html +15 -15
- data/doc/classes/Qbxml/Request.src/{M000184.html → M000132.html} +12 -11
- data/doc/classes/Qbxml/Request.src/{M000185.html → M000133.html} +1 -1
- data/doc/classes/Qbxml/Request.src/{M000186.html → M000134.html} +1 -1
- data/doc/classes/Qbxml/RequestSet.html +20 -20
- data/doc/classes/Qbxml/RequestSet.src/{M000187.html → M000135.html} +1 -1
- data/doc/classes/Qbxml/RequestSet.src/{M000188.html → M000136.html} +1 -1
- data/doc/classes/Qbxml/RequestSet.src/{M000189.html → M000137.html} +1 -1
- data/doc/classes/Qbxml/RequestSet.src/{M000190.html → M000138.html} +1 -1
- data/doc/classes/Qbxml/Response.html +45 -45
- data/doc/classes/Qbxml/Response.src/{M000175.html → M000123.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000176.html → M000124.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000177.html → M000125.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000178.html → M000126.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000179.html → M000127.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000180.html → M000128.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000181.html → M000129.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000182.html → M000130.html} +0 -0
- data/doc/classes/Qbxml/Response.src/{M000183.html → M000131.html} +1 -1
- data/doc/classes/Qbxml/ResponseSet.html +35 -35
- data/doc/classes/Qbxml/ResponseSet.src/{M000168.html → M000116.html} +0 -0
- data/doc/classes/Qbxml/ResponseSet.src/{M000169.html → M000117.html} +0 -0
- data/doc/classes/Qbxml/ResponseSet.src/{M000170.html → M000118.html} +0 -0
- data/doc/classes/Qbxml/ResponseSet.src/{M000171.html → M000119.html} +0 -0
- data/doc/classes/Qbxml/ResponseSet.src/{M000172.html → M000120.html} +0 -0
- data/doc/classes/Qbxml/ResponseSet.src/{M000173.html → M000121.html} +0 -0
- data/doc/classes/Qbxml/ResponseSet.src/{M000174.html → M000122.html} +0 -0
- data/doc/classes/Quickbooks.html +6 -0
- data/doc/classes/Quickbooks/Address.html +5 -5
- data/doc/classes/Quickbooks/Address.src/{M000150.html → M000115.html} +0 -0
- data/doc/classes/Quickbooks/Base.html +167 -106
- data/doc/classes/Quickbooks/Base.src/{M000131.html → M000095.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000132.html → M000096.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000133.html → M000097.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000134.html → M000098.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000135.html → M000099.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000136.html → M000100.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000137.html → M000101.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000138.html → M000102.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000139.html → M000103.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000140.html → M000104.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/M000105.html +18 -0
- data/doc/classes/Quickbooks/Base.src/{M000141.html → M000106.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000142.html → M000107.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000143.html → M000108.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000144.html → M000109.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000145.html → M000110.html} +1 -1
- data/doc/classes/Quickbooks/Base.src/{M000146.html → M000111.html} +2 -2
- data/doc/classes/Quickbooks/Base.src/{M000147.html → M000112.html} +1 -1
- data/doc/classes/Quickbooks/ListDeleted.html +5 -5
- data/doc/classes/Quickbooks/ListDeleted.src/{M000149.html → M000114.html} +0 -0
- data/doc/classes/Quickbooks/ListItem.html +26 -10
- data/doc/classes/Quickbooks/ListItem.src/{M000129.html → M000093.html} +3 -2
- data/doc/classes/Quickbooks/ListItem.src/{M000130.html → M000094.html} +1 -1
- data/doc/classes/Quickbooks/Model.html +110 -117
- data/doc/classes/Quickbooks/Model.src/{M000109.html → M000073.html} +3 -4
- data/doc/classes/Quickbooks/Model.src/{M000110.html → M000074.html} +2 -1
- data/doc/classes/Quickbooks/Model.src/{M000111.html → M000075.html} +2 -2
- data/doc/classes/Quickbooks/Model.src/{M000112.html → M000076.html} +2 -3
- data/doc/classes/Quickbooks/Model.src/{M000113.html → M000077.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000114.html → M000078.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000115.html → M000079.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000116.html → M000080.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000117.html → M000081.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000118.html → M000082.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000119.html → M000083.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000120.html → M000084.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000121.html → M000085.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000122.html → M000086.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000123.html → M000087.html} +0 -0
- data/doc/classes/Quickbooks/Model.src/{M000124.html → M000088.html} +2 -4
- data/doc/classes/Quickbooks/Model.src/{M000125.html → M000089.html} +3 -5
- data/doc/classes/Quickbooks/Model.src/{M000126.html → M000090.html} +1 -1
- data/doc/classes/Quickbooks/Model.src/{M000127.html → M000091.html} +1 -1
- data/doc/classes/Quickbooks/OleAdapter/Connection.html +65 -65
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000094.html → M000058.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000095.html → M000059.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000096.html → M000060.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000097.html → M000061.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000098.html → M000062.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000099.html → M000063.html} +1 -1
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000100.html → M000064.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000101.html → M000065.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000102.html → M000066.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Connection.src/{M000103.html → M000067.html} +2 -2
- data/doc/classes/Quickbooks/OleAdapter/Ole.html +17 -17
- data/doc/classes/Quickbooks/OleAdapter/Ole.src/{M000104.html → M000068.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Ole.src/{M000105.html → M000069.html} +0 -0
- data/doc/classes/Quickbooks/OleAdapter/Ole.src/{M000106.html → M000070.html} +0 -0
- data/doc/classes/Quickbooks/QbxmlDebugAdapter/Connection.html +5 -5
- data/doc/classes/Quickbooks/QbxmlDebugAdapter/Connection.src/{M000093.html → M000057.html} +0 -0
- data/doc/classes/Quickbooks/Ref.html +12 -5
- data/doc/classes/Quickbooks/Ref.src/{M000148.html → M000113.html} +1 -1
- data/doc/classes/Quickbooks/Transaction.html +10 -10
- data/doc/classes/Quickbooks/Transaction.src/{M000107.html → M000071.html} +0 -0
- data/doc/classes/Quickbooks/Transaction.src/{M000108.html → M000072.html} +0 -0
- data/doc/classes/Quickbooks/TxnDeleted.html +5 -5
- data/doc/classes/Quickbooks/TxnDeleted.src/{M000128.html → M000092.html} +0 -0
- data/doc/classes/String.html +25 -91
- data/doc/classes/String.src/{M000085.html → M000052.html} +0 -0
- data/doc/classes/String.src/{M000086.html → M000053.html} +0 -0
- data/doc/classes/String.src/{M000087.html → M000054.html} +0 -0
- data/doc/classes/String.src/{M000088.html → M000055.html} +1 -1
- data/doc/classes/String.src/{M000089.html → M000056.html} +1 -1
- data/doc/created.rid +1 -1
- data/doc/files/LICENSE.html +1 -1
- data/doc/files/README.html +38 -10
- data/doc/files/lib/qbxml/request_rb.html +2 -1
- data/doc/files/lib/qbxml/response_rb.html +1 -1
- data/doc/files/lib/qbxml/support_rb.html +1 -8
- data/doc/files/lib/qbxml_rb.html +14 -1
- data/doc/files/lib/quickbooks/adapters/ole_adapter_rb.html +1 -1
- data/doc/files/lib/quickbooks/adapters/qbxml_debug_adapter_rb.html +1 -1
- data/doc/files/lib/quickbooks/base_rb.html +8 -3
- data/doc/files/lib/quickbooks/model_rb.html +1 -2
- data/doc/files/lib/quickbooks/models/common/address_rb.html +1 -1
- data/doc/files/lib/quickbooks/models/common/all_refs_rb.html +1 -1
- data/doc/files/lib/quickbooks/models/customer/credit_card_info_rb.html +1 -1
- data/doc/files/lib/quickbooks/models/customer_rb.html +1 -1
- data/doc/files/lib/quickbooks/models/deleted_rb.html +1 -1
- data/doc/files/lib/quickbooks/models/list_item_rb.html +1 -1
- data/doc/files/lib/quickbooks/models/transaction_rb.html +1 -1
- data/doc/files/lib/quickbooks/ruby_magic_rb.html +2 -1
- data/doc/files/lib/quickbooks_rb.html +14 -1
- data/doc/fr_class_index.html +0 -5
- data/doc/fr_file_index.html +0 -1
- data/doc/fr_method_index.html +138 -190
- data/lib/qbxml.rb +1 -0
- data/lib/qbxml/request.rb +12 -10
- data/lib/qbxml/response.rb +1 -1
- data/lib/qbxml/support.rb +1 -1
- data/lib/quickbooks.rb +1 -0
- data/lib/quickbooks/adapters/ole_adapter.rb +3 -3
- data/lib/quickbooks/base.rb +30 -3
- data/lib/quickbooks/model.rb +14 -18
- data/lib/quickbooks/models/common/all_refs.rb +1 -0
- data/lib/quickbooks/models/deleted.rb +1 -1
- data/lib/quickbooks/models/list_item.rb +7 -1
- data/lib/quickbooks/models/transaction.rb +1 -1
- data/lib/quickbooks/ruby_magic.rb +28 -11
- metadata +124 -179
- data/doc/classes/Array.src/M000048.html +0 -23
- data/doc/classes/Array.src/M000051.html +0 -18
- data/doc/classes/Array.src/M000052.html +0 -18
- data/doc/classes/Array.src/M000053.html +0 -18
- data/doc/classes/Array.src/M000054.html +0 -20
- data/doc/classes/Array.src/M000055.html +0 -18
- data/doc/classes/Array.src/M000056.html +0 -34
- data/doc/classes/Array.src/M000057.html +0 -19
- data/doc/classes/Array.src/M000058.html +0 -29
- data/doc/classes/Array.src/M000059.html +0 -18
- data/doc/classes/Array.src/M000060.html +0 -20
- data/doc/classes/Array.src/M000061.html +0 -18
- data/doc/classes/Array.src/M000062.html +0 -18
- data/doc/classes/Array.src/M000063.html +0 -19
- data/doc/classes/Hash.src/M000026.html +0 -18
- data/doc/classes/Hash.src/M000027.html +0 -22
- data/doc/classes/Hash.src/M000028.html +0 -18
- data/doc/classes/Hash.src/M000029.html +0 -20
- data/doc/classes/Hash.src/M000031.html +0 -30
- data/doc/classes/Hash.src/M000032.html +0 -19
- data/doc/classes/Hash.src/M000033.html +0 -19
- data/doc/classes/Hash.src/M000034.html +0 -18
- data/doc/classes/Hash.src/M000035.html +0 -18
- data/doc/classes/Hash.src/M000036.html +0 -21
- data/doc/classes/OrderedArray.html +0 -178
- data/doc/classes/OrderedArray.src/M000001.html +0 -18
- data/doc/classes/OrderedArray.src/M000002.html +0 -18
- data/doc/classes/OrderedArray.src/M000003.html +0 -18
- data/doc/classes/OrderedHash.html +0 -324
- data/doc/classes/OrderedHash.src/M000064.html +0 -19
- data/doc/classes/OrderedHash.src/M000065.html +0 -18
- data/doc/classes/OrderedHash.src/M000066.html +0 -18
- data/doc/classes/OrderedHash.src/M000067.html +0 -18
- data/doc/classes/OrderedHash.src/M000068.html +0 -18
- data/doc/classes/OrderedHash.src/M000069.html +0 -18
- data/doc/classes/OrderedHash.src/M000070.html +0 -20
- data/doc/classes/OrderedHash.src/M000071.html +0 -18
- data/doc/classes/OrderedHash.src/M000072.html +0 -18
- data/doc/classes/OrderedHash.src/M000073.html +0 -19
- data/doc/classes/OrderedHash.src/M000074.html +0 -24
- data/doc/classes/SlashedArray.html +0 -226
- data/doc/classes/SlashedArray.src/M000161.html +0 -23
- data/doc/classes/SlashedArray.src/M000162.html +0 -18
- data/doc/classes/SlashedArray.src/M000163.html +0 -18
- data/doc/classes/SlashedArray.src/M000164.html +0 -22
- data/doc/classes/SlashedArray.src/M000165.html +0 -22
- data/doc/classes/SlashedArray.src/M000166.html +0 -18
- data/doc/classes/SlashedArray.src/M000167.html +0 -22
- data/doc/classes/SlashedHash.html +0 -193
- data/doc/classes/SlashedHash.src/M000156.html +0 -22
- data/doc/classes/SlashedHash.src/M000157.html +0 -18
- data/doc/classes/SlashedHash.src/M000158.html +0 -18
- data/doc/classes/SlashedHash.src/M000159.html +0 -27
- data/doc/classes/SlashedHash.src/M000160.html +0 -22
- data/doc/classes/String.src/M000090.html +0 -18
- data/doc/classes/String.src/M000091.html +0 -18
- data/doc/classes/String.src/M000092.html +0 -97
- data/doc/classes/UniqueArray.html +0 -193
- data/doc/classes/UniqueArray.src/M000151.html +0 -25
- data/doc/classes/UniqueArray.src/M000152.html +0 -18
- data/doc/classes/UniqueArray.src/M000153.html +0 -20
- data/doc/classes/UniqueArray.src/M000154.html +0 -20
- data/doc/classes/UniqueArray.src/M000155.html +0 -20
- data/doc/files/lib/quickbooks/structure_rb.html +0 -122
- data/lib/quickbooks/structure.rb +0 -393
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>slashed? (String)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 9</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slashed?</span>
|
15
|
-
<span class="ruby-keyword kw">self</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\//</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>flatten_slashes (String)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 12</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flatten_slashes</span>
|
15
|
-
<span class="ruby-keyword kw">self</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,97 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>expand_slashes (String)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 15</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_slashes</span>(<span class="ruby-identifier">seed</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-identifier">overwrite</span>=<span class="ruby-keyword kw">false</span>)
|
15
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">dup</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">slashed?</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">seed</span>.<span class="ruby-identifier">nil?</span>
|
16
|
-
|
17
|
-
<span class="ruby-identifier">hsh</span> = <span class="ruby-identifier">seed</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span>[] <span class="ruby-operator">:</span> (<span class="ruby-identifier">seed</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">seed</span> <span class="ruby-operator">:</span> [<span class="ruby-identifier">seed</span>])
|
18
|
-
<span class="ruby-identifier">leaf</span> = <span class="ruby-identifier">hsh</span>
|
19
|
-
<span class="ruby-identifier">slashed</span> = <span class="ruby-keyword kw">self</span>
|
20
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-keyword kw">nil</span>
|
21
|
-
<span class="ruby-identifier">redoing</span> = <span class="ruby-keyword kw">false</span>
|
22
|
-
<span class="ruby-keyword kw">while</span>(<span class="ruby-identifier">slashed</span>)
|
23
|
-
<span class="ruby-identifier">s</span>, <span class="ruby-identifier">slashed</span> = <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>,<span class="ruby-value">2</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">redoing</span>
|
24
|
-
<span class="ruby-identifier">redoing</span> = <span class="ruby-keyword kw">false</span>
|
25
|
-
|
26
|
-
<span class="ruby-comment cmt"># break when we can't go further</span>
|
27
|
-
|
28
|
-
<span class="ruby-comment cmt"># If leaf is a hash, continue into hash[s] if an array, or if a hash and !slashed.nil?.</span>
|
29
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
30
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">s</span>)
|
31
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>).<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span>)
|
32
|
-
<span class="ruby-identifier">leaf</span> = <span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>]
|
33
|
-
<span class="ruby-keyword kw">else</span>
|
34
|
-
<span class="ruby-keyword kw">break</span>
|
35
|
-
<span class="ruby-keyword kw">end</span>
|
36
|
-
<span class="ruby-keyword kw">else</span>
|
37
|
-
<span class="ruby-keyword kw">break</span>
|
38
|
-
<span class="ruby-keyword kw">end</span>
|
39
|
-
|
40
|
-
|
41
|
-
<span class="ruby-comment cmt"># If leaf is an array, continue only if !slashed.nil? AND an included hash contains the key</span>
|
42
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
43
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">&&</span> ((<span class="ruby-keyword kw">false</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">h</span> = <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">reject</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)}.<span class="ruby-identifier">reject</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span><span class="ruby-identifier">e</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">s</span>)}[<span class="ruby-value">-1</span>])
|
44
|
-
<span class="ruby-identifier">leaf</span> = <span class="ruby-identifier">h</span>
|
45
|
-
<span class="ruby-identifier">redoing</span> = <span class="ruby-keyword kw">true</span>
|
46
|
-
<span class="ruby-keyword kw">redo</span>
|
47
|
-
<span class="ruby-keyword kw">else</span>
|
48
|
-
<span class="ruby-keyword kw">break</span>
|
49
|
-
<span class="ruby-keyword kw">end</span>
|
50
|
-
<span class="ruby-keyword kw">end</span>
|
51
|
-
<span class="ruby-keyword kw">end</span>
|
52
|
-
|
53
|
-
<span class="ruby-comment cmt"># now we have leaf, which is where we need to append our value(s); s, the next segment, and slashed, which is all the rest of the segments</span>
|
54
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">slashed</span>
|
55
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">leaf</span>
|
56
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
|
57
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">s</span>)
|
58
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">overwrite</span>
|
59
|
-
<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>] = <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>
|
60
|
-
<span class="ruby-keyword kw">else</span>
|
61
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
62
|
-
<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>] = <span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>
|
63
|
-
<span class="ruby-keyword kw">else</span>
|
64
|
-
<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>] = [<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>], <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>]
|
65
|
-
<span class="ruby-keyword kw">end</span>
|
66
|
-
<span class="ruby-keyword kw">end</span>
|
67
|
-
<span class="ruby-keyword kw">else</span>
|
68
|
-
<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">s</span>] = <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>
|
69
|
-
<span class="ruby-keyword kw">end</span>
|
70
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
|
71
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">overwrite</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">s</span>)
|
72
|
-
<span class="ruby-identifier">leaf</span>[<span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">s</span>)] = {<span class="ruby-identifier">s</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>}
|
73
|
-
<span class="ruby-keyword kw">else</span>
|
74
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">leaf</span>[<span class="ruby-value">-1</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
75
|
-
<span class="ruby-identifier">leaf</span>[<span class="ruby-value">-1</span>][<span class="ruby-identifier">s</span>] = <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>
|
76
|
-
<span class="ruby-keyword kw">else</span>
|
77
|
-
<span class="ruby-identifier">leaf</span> <span class="ruby-operator"><<</span> {<span class="ruby-identifier">s</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">slashed</span>.<span class="ruby-identifier">expand_slashes</span>}
|
78
|
-
<span class="ruby-keyword kw">end</span>
|
79
|
-
<span class="ruby-keyword kw">end</span>
|
80
|
-
<span class="ruby-keyword kw">end</span>
|
81
|
-
|
82
|
-
|
83
|
-
<span class="ruby-comment cmt"># There's no more, just the end value. leaf shouldn't be a hash in this case</span>
|
84
|
-
<span class="ruby-keyword kw">else</span>
|
85
|
-
<span class="ruby-keyword kw">case</span> <span class="ruby-identifier">leaf</span>
|
86
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
|
87
|
-
<span class="ruby-comment cmt"># If leaf IS a hash, it must be the root hsh. In that case, it becomes obvious we need hsh to be an array, not a hash</span>
|
88
|
-
<span class="ruby-identifier">hsh</span> = [<span class="ruby-identifier">hsh</span>, <span class="ruby-identifier">s</span>]
|
89
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
|
90
|
-
<span class="ruby-identifier">leaf</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">s</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">overwrite</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">leaf</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">s</span>)
|
91
|
-
<span class="ruby-keyword kw">end</span>
|
92
|
-
<span class="ruby-keyword kw">end</span>
|
93
|
-
|
94
|
-
<span class="ruby-identifier">hsh</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator"><</span> <span class="ruby-value">2</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">hsh</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">hsh</span>
|
95
|
-
<span class="ruby-keyword kw">end</span></pre>
|
96
|
-
</body>
|
97
|
-
</html>
|
@@ -1,193 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: UniqueArray</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">UniqueArray</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/quickbooks/structure_rb.html">
|
59
|
-
lib/quickbooks/structure.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
</table>
|
66
|
-
</div>
|
67
|
-
<!-- banner header -->
|
68
|
-
|
69
|
-
<div id="bodyContent">
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<div id="contextContent">
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<div id="method-list">
|
80
|
-
<h3 class="section-bar">Methods</h3>
|
81
|
-
|
82
|
-
<div class="name-list">
|
83
|
-
<a href="#M000155"><<</a>
|
84
|
-
<a href="#M000152">new</a>
|
85
|
-
<a href="#M000151">prepare_for_overwrites!</a>
|
86
|
-
<a href="#M000153">push</a>
|
87
|
-
<a href="#M000154">unshift</a>
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
|
94
|
-
<!-- if includes -->
|
95
|
-
|
96
|
-
<div id="section">
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if method_list -->
|
106
|
-
<div id="methods">
|
107
|
-
<h3 class="section-bar">Public Class methods</h3>
|
108
|
-
|
109
|
-
<div id="method-M000152" class="method-detail">
|
110
|
-
<a name="M000152"></a>
|
111
|
-
|
112
|
-
<div class="method-heading">
|
113
|
-
<a href="UniqueArray.src/M000152.html" target="Code" class="method-signature"
|
114
|
-
onclick="popupCode('UniqueArray.src/M000152.html');return false;">
|
115
|
-
<span class="method-name">new</span><span class="method-args">()</span>
|
116
|
-
</a>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
<div class="method-description">
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
|
123
|
-
<div id="method-M000151" class="method-detail">
|
124
|
-
<a name="M000151"></a>
|
125
|
-
|
126
|
-
<div class="method-heading">
|
127
|
-
<a href="UniqueArray.src/M000151.html" target="Code" class="method-signature"
|
128
|
-
onclick="popupCode('UniqueArray.src/M000151.html');return false;">
|
129
|
-
<span class="method-name">prepare_for_overwrites!</span><span class="method-args">(ary)</span>
|
130
|
-
</a>
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="method-description">
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
138
|
-
|
139
|
-
<div id="method-M000155" class="method-detail">
|
140
|
-
<a name="M000155"></a>
|
141
|
-
|
142
|
-
<div class="method-heading">
|
143
|
-
<a href="UniqueArray.src/M000155.html" target="Code" class="method-signature"
|
144
|
-
onclick="popupCode('UniqueArray.src/M000155.html');return false;">
|
145
|
-
<span class="method-name"><<</span><span class="method-args">(*args)</span>
|
146
|
-
</a>
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div class="method-description">
|
150
|
-
</div>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
<div id="method-M000153" class="method-detail">
|
154
|
-
<a name="M000153"></a>
|
155
|
-
|
156
|
-
<div class="method-heading">
|
157
|
-
<a href="UniqueArray.src/M000153.html" target="Code" class="method-signature"
|
158
|
-
onclick="popupCode('UniqueArray.src/M000153.html');return false;">
|
159
|
-
<span class="method-name">push</span><span class="method-args">(*args)</span>
|
160
|
-
</a>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
<div class="method-description">
|
164
|
-
</div>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div id="method-M000154" class="method-detail">
|
168
|
-
<a name="M000154"></a>
|
169
|
-
|
170
|
-
<div class="method-heading">
|
171
|
-
<a href="UniqueArray.src/M000154.html" target="Code" class="method-signature"
|
172
|
-
onclick="popupCode('UniqueArray.src/M000154.html');return false;">
|
173
|
-
<span class="method-name">unshift</span><span class="method-args">(*args)</span>
|
174
|
-
</a>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
<div class="method-description">
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
|
181
|
-
|
182
|
-
</div>
|
183
|
-
|
184
|
-
|
185
|
-
</div>
|
186
|
-
|
187
|
-
|
188
|
-
<div id="validator-badges">
|
189
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
190
|
-
</div>
|
191
|
-
|
192
|
-
</body>
|
193
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>prepare_for_overwrites! (UniqueArray)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 224</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">prepare_for_overwrites!</span>(<span class="ruby-identifier">ary</span>)
|
15
|
-
<span class="ruby-keyword kw">class</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">ary</span>
|
16
|
-
<span class="ruby-keyword kw">alias</span> <span class="ruby-identifier">:push_without_unique</span> <span class="ruby-identifier">:push</span>
|
17
|
-
<span class="ruby-keyword kw">alias</span> <span class="ruby-identifier">:unshift_without_unique</span> <span class="ruby-identifier">:unshift</span>
|
18
|
-
<span class="ruby-keyword kw">alias</span> <span class="ruby-identifier">:append_without_unique</span> <span class="ruby-identifier">:<<</span>
|
19
|
-
<span class="ruby-comment cmt"># This makes sure whatever kind of array (regular, slashed_structure, etc) it is,</span>
|
20
|
-
<span class="ruby-comment cmt"># keep_unique! will keep it unique at the type it was when it was told to stay unique.</span>
|
21
|
-
<span class="ruby-keyword kw">alias</span> <span class="ruby-identifier">:_snapshot_include?</span> <span class="ruby-identifier">:include?</span>
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
<span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>new (UniqueArray)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 234</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>
|
15
|
-
[].<span class="ruby-identifier">keep_unique!</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>push (UniqueArray)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 238</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
-
<span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
16
|
-
<span class="ruby-identifier">push_without_unique</span>(<span class="ruby-identifier">arg</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">_snapshot_include?</span>(<span class="ruby-identifier">arg</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>unshift (UniqueArray)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 243</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unshift</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
-
<span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
16
|
-
<span class="ruby-identifier">unshift_without_unique</span>(<span class="ruby-identifier">arg</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">_snapshot_include?</span>(<span class="ruby-identifier">arg</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title><< (UniqueArray)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/quickbooks/structure.rb, line 248</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
|
15
|
-
<span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span>
|
16
|
-
<span class="ruby-identifier">append_without_unique</span>(<span class="ruby-identifier">arg</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">_snapshot_include?</span>(<span class="ruby-identifier">arg</span>)
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,122 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>File: structure.rb</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="fileHeader">
|
50
|
-
<h1>structure.rb</h1>
|
51
|
-
<table class="header-table">
|
52
|
-
<tr class="top-aligned-row">
|
53
|
-
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/quickbooks/structure.rb
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
<tr class="top-aligned-row">
|
58
|
-
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>Thu Mar 20 11:19:16 -0400 2008</td>
|
60
|
-
</tr>
|
61
|
-
</table>
|
62
|
-
</div>
|
63
|
-
<!-- banner header -->
|
64
|
-
|
65
|
-
<div id="bodyContent">
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
<div id="contextContent">
|
70
|
-
|
71
|
-
<div id="description">
|
72
|
-
<p>
|
73
|
-
This is serious super-magic code… :P <a
|
74
|
-
href="../../../classes/Array.html">Array</a> and <a
|
75
|
-
href="../../../classes/Hash.html">Hash</a> are extended only slightly, with
|
76
|
-
methods that will extend an <a href="../../../classes/Array.html">Array</a>
|
77
|
-
object to be kept unique, or a <a
|
78
|
-
href="../../../classes/Hash.html">Hash</a> object to be kept in a given
|
79
|
-
order or else in the order keys are defined; or an <a
|
80
|
-
href="../../../classes/Array.html">Array</a> or <a
|
81
|
-
href="../../../classes/Hash.html">Hash</a> object just to retain the
|
82
|
-
ordered-ness of contained hashes. ‘slashing’ in <a
|
83
|
-
href="../../../classes/Array.html">Array</a> and <a
|
84
|
-
href="../../../classes/Hash.html">Hash</a> is the idea that
|
85
|
-
multi-dimensional hashes and arrays could be represented by a key split by
|
86
|
-
’/’s. In this way we can sort a multi-dimensional hash by a
|
87
|
-
multi-dimensional array (to give the hash order), and then blow up the
|
88
|
-
slash keys into actual multi-dimensional hashes.
|
89
|
-
</p>
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
|
94
|
-
</div>
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
<!-- if includes -->
|
101
|
-
|
102
|
-
<div id="section">
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<!-- if method_list -->
|
112
|
-
|
113
|
-
|
114
|
-
</div>
|
115
|
-
|
116
|
-
|
117
|
-
<div id="validator-badges">
|
118
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
119
|
-
</div>
|
120
|
-
|
121
|
-
</body>
|
122
|
-
</html>
|