hakto 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +7 -0
- data/README.md +91 -0
- data/README_jp.md +92 -0
- data/Rakefile +18 -0
- data/doc/Hakto/SafeSDBM.html +318 -0
- data/doc/Hakto.html +139 -0
- data/doc/Object.html +143 -0
- data/doc/Rakefile.html +96 -0
- data/doc/SafeSDBMTest.html +591 -0
- data/doc/created.rid +4 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +84 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +96 -0
- data/lib/hakto/safe_sdbm.rb +75 -0
- data/test/tb_safe_sdbm.rb +94 -0
- data/test/test.sdb.dir +0 -0
- data/test/test.sdb.pag +0 -0
- metadata +113 -0
data/LICENSE
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) 2012 Moza USANE
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
Hakto Safe SDBM Wrapper
|
2
|
+
=======================
|
3
|
+
|
4
|
+
## Introduction
|
5
|
+
|
6
|
+
Hakto Safe SDBM Wrapper is a safe wrapper of SDBM library. Hakto has compatibility of instance method's interface that is in SDBM class.
|
7
|
+
|
8
|
+
Hakto enables to tighten up a code that uses SDBM library like following codes.
|
9
|
+
|
10
|
+
**before**
|
11
|
+
|
12
|
+
class Klass
|
13
|
+
def initialize(db_path)
|
14
|
+
@db_path = db_path
|
15
|
+
end
|
16
|
+
|
17
|
+
def method1
|
18
|
+
SDBM.open(@db_path) do |dbm|
|
19
|
+
dbm["hoge"] = "HOGE"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def method2
|
24
|
+
SDBM.open(@db_path) do |dbm|
|
25
|
+
dbm["hoge"]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
:
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
**after**
|
34
|
+
|
35
|
+
class Klass
|
36
|
+
def initialize(db_path)
|
37
|
+
@sdb = SafeSDBM.new(db_path)
|
38
|
+
end
|
39
|
+
|
40
|
+
def method1
|
41
|
+
sdb["hoge"] = "HOGE"
|
42
|
+
end
|
43
|
+
|
44
|
+
def method2
|
45
|
+
sdb["hoge"]
|
46
|
+
end
|
47
|
+
|
48
|
+
:
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
## Operation Environment
|
55
|
+
|
56
|
+
We checked good operation within following environment.
|
57
|
+
|
58
|
+
- Linux(openSUSE 12.2)・Mac OS X 10.8.2
|
59
|
+
- Ruby 1.9.3
|
60
|
+
|
61
|
+
## Architectonics
|
62
|
+
|
63
|
+
- **bin**
|
64
|
+
- **doc** :: Rdoc documents.
|
65
|
+
- **lib**
|
66
|
+
- **hakto**
|
67
|
+
- **safe_sdbm.rb** :: Class of SafeSDBM
|
68
|
+
- **LICENSE**
|
69
|
+
- **Rakefile** :: Rakefile that is used to generate gem file
|
70
|
+
- **README.md**
|
71
|
+
- **README_jp.md**
|
72
|
+
- **test** :: Unit tests
|
73
|
+
- **tb_safe_sdbm.rb** :: Unit test for SafeSDBM
|
74
|
+
|
75
|
+
## Install
|
76
|
+
|
77
|
+
Download hakto-x.y.z.gem, then execute following command to install Hakto.
|
78
|
+
|
79
|
+
`$ sudo gem install hakto-x.y.z.gem`
|
80
|
+
|
81
|
+
Also you can install Hakto without gem. Allocate the safe_sdbm.rb where is ruby interpreter can load Hakto.
|
82
|
+
|
83
|
+
## Sample code
|
84
|
+
|
85
|
+
See tb_safe_sdbm.rb file. It is an unit test code, and it doubles with sample code.
|
86
|
+
|
87
|
+
## About Author
|
88
|
+
|
89
|
+
Moza USANE
|
90
|
+
[http://blog.quellencode.org/](http://blog.quellencode.org/ "")
|
91
|
+
mozamimy@quellencode.org
|
data/README_jp.md
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
Hakto Safe SDBM Wrapper
|
2
|
+
=======================
|
3
|
+
|
4
|
+
## イントロダクション
|
5
|
+
|
6
|
+
Hakto Safe SDBM Wrapper(以下Haktoと省略)は、RubyのSDBMライブラリの安全なラッパーライブラリである。SDBMクラスのほぼ全てのインスタンスメソッドと互換性がある。
|
7
|
+
|
8
|
+
SDBMライブラリを使うときにありがちな、以下の様な煩雑なコードをスッキリまとめることができる。
|
9
|
+
|
10
|
+
**before**
|
11
|
+
|
12
|
+
class Klass
|
13
|
+
def initialize(db_path)
|
14
|
+
@db_path = db_path
|
15
|
+
end
|
16
|
+
|
17
|
+
def method1
|
18
|
+
SDBM.open(@db_path) do |dbm|
|
19
|
+
dbm["hoge"] = "HOGE"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def method2
|
24
|
+
SDBM.open(@db_path) do |dbm|
|
25
|
+
dbm["hoge"]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
:
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
**after**
|
34
|
+
|
35
|
+
class Klass
|
36
|
+
def initialize(db_path)
|
37
|
+
@sdb = SafeSDBM.new(db_path)
|
38
|
+
end
|
39
|
+
|
40
|
+
def method1
|
41
|
+
sdb["hoge"] = "HOGE"
|
42
|
+
end
|
43
|
+
|
44
|
+
def method2
|
45
|
+
sdb["hoge"]
|
46
|
+
end
|
47
|
+
|
48
|
+
:
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
## 動作環境
|
53
|
+
|
54
|
+
以下の環境で開発およびテストをしている。
|
55
|
+
|
56
|
+
- Linux(openSUSE 12.2)・Mac OS X 10.8.2
|
57
|
+
- Ruby 1.9.3
|
58
|
+
|
59
|
+
## 構成
|
60
|
+
|
61
|
+
- **bin**
|
62
|
+
- **doc** :: rdocによるドキュメント
|
63
|
+
- **lib**
|
64
|
+
- **hakto**
|
65
|
+
- **safe_sdbm.rb** :: SafeSDBMクラス
|
66
|
+
- **LICENSE**
|
67
|
+
- **Rakefile** :: gemパッケージ生成用のRakefile
|
68
|
+
- **README.md**
|
69
|
+
- **README_jp.md**
|
70
|
+
- **test** :: ユニットテスト
|
71
|
+
- **tb_safe_sdbm.rb** :: SafeSDBM用ユニットテスト
|
72
|
+
|
73
|
+
## インストール
|
74
|
+
|
75
|
+
hakto-x.y.z.gemファイル(x、y、zはバージョン番号)をダウンロードし、以下のコマンドを入力してインストールする。
|
76
|
+
|
77
|
+
`$ sudo gem install hakto-x.y.z.gem`
|
78
|
+
|
79
|
+
または、
|
80
|
+
|
81
|
+
gemを使わない場合は、Rubyのパスが通っている適当な場所にsafe_sdbm.rbを置く。
|
82
|
+
|
83
|
+
## サンプルコード
|
84
|
+
|
85
|
+
tb_safe_sdbm.rbがサンプルコードを兼ねている。
|
86
|
+
|
87
|
+
|
88
|
+
## 作者について
|
89
|
+
|
90
|
+
Moza USANE
|
91
|
+
[http://blog.quellencode.org/](http://blog.quellencode.org/ "")
|
92
|
+
mozamimy@quellencode.org
|
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "rake/gempackagetask"
|
2
|
+
|
3
|
+
spec = Gem::Specification.new do |s|
|
4
|
+
s.name = "hakto"
|
5
|
+
s.summary = "Hakto Safe SDBM Wrapper is a safe wrapper of SDBM class."
|
6
|
+
s.description = File.read(File.join(File.dirname(__FILE__), "README.md"))
|
7
|
+
s.version = "0.0.1"
|
8
|
+
s.author = "Moza USANE"
|
9
|
+
s.email = "mozamimy@quellencode.org"
|
10
|
+
s.homepage = "http://blog.quellencode.org/"
|
11
|
+
s.platform = Gem::Platform::RUBY
|
12
|
+
s.required_ruby_version = ">=1.9"
|
13
|
+
s.files = Dir["**/**"]
|
14
|
+
s.test_files = Dir["test/test*.rb"]
|
15
|
+
s.has_rdoc = true
|
16
|
+
end
|
17
|
+
|
18
|
+
Rake::GemPackageTask.new(spec).define
|
@@ -0,0 +1,318 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class Hakto::SafeSDBM - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "../";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="../index.html">Home</a>
|
28
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/hakto/safe_sdbm.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link"><a href="../Object.html">Object</a>
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-print_each">#print_each</a>
|
76
|
+
|
77
|
+
<li><a href="#method-i-print_keys">#print_keys</a>
|
78
|
+
|
79
|
+
<li><a href="#method-i-print_values">#print_values</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="project-metadata">
|
87
|
+
<nav id="fileindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Pages</h3>
|
89
|
+
|
90
|
+
<ul>
|
91
|
+
|
92
|
+
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
93
|
+
|
94
|
+
</ul>
|
95
|
+
</nav>
|
96
|
+
|
97
|
+
<nav id="classindex-section" class="section project-section">
|
98
|
+
<h3 class="section-header">Class and Module Index</h3>
|
99
|
+
|
100
|
+
<ul class="link-list">
|
101
|
+
|
102
|
+
<li><a href="../Hakto.html">Hakto</a>
|
103
|
+
|
104
|
+
<li><a href="../Hakto/SafeSDBM.html">Hakto::SafeSDBM</a>
|
105
|
+
|
106
|
+
<li><a href="../Object.html">Object</a>
|
107
|
+
|
108
|
+
<li><a href="../SafeSDBMTest.html">SafeSDBMTest</a>
|
109
|
+
|
110
|
+
</ul>
|
111
|
+
</nav>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</nav>
|
115
|
+
|
116
|
+
<div id="documentation">
|
117
|
+
<h1 class="class">class Hakto::SafeSDBM</h1>
|
118
|
+
|
119
|
+
<div id="description" class="description">
|
120
|
+
|
121
|
+
<p>Wrapper of SDBM class. It provides safe access to SDBM database. You can
|
122
|
+
use almost instance methods of SDBM class.</p>
|
123
|
+
|
124
|
+
</div><!-- description -->
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<!-- Attributes -->
|
138
|
+
<section id="attribute-method-details" class="method-section section">
|
139
|
+
<h3 class="section-header">Attributes</h3>
|
140
|
+
|
141
|
+
|
142
|
+
<div id="attribute-i-db_path" class="method-detail">
|
143
|
+
<div class="method-heading attribute-method-heading">
|
144
|
+
<span class="method-name">db_path</span><span
|
145
|
+
class="attribute-access-type">[R]</span>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
</div>
|
154
|
+
|
155
|
+
</section><!-- attribute-method-details -->
|
156
|
+
|
157
|
+
|
158
|
+
<!-- Methods -->
|
159
|
+
|
160
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
161
|
+
<h3 class="section-header">Public Class Methods</h3>
|
162
|
+
|
163
|
+
|
164
|
+
<div id="method-c-new" class="method-detail ">
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
<span class="method-name">new</span><span
|
168
|
+
class="method-args">(db_path)</span>
|
169
|
+
<span class="method-click-advice">click to toggle source</span>
|
170
|
+
</div>
|
171
|
+
|
172
|
+
|
173
|
+
<div class="method-description">
|
174
|
+
|
175
|
+
<p>Initialize <a href="SafeSDBM.html">SafeSDBM</a>.</p>
|
176
|
+
|
177
|
+
<h4 id="method-c-new-label-Args">Args</h4>
|
178
|
+
<dl class="rdoc-list note-list"><dt><a href="SafeSDBM.html#attribute-i-db_path">#db_path</a>
|
179
|
+
<dd>
|
180
|
+
<p>A filepath of DB file</p>
|
181
|
+
</dd></dl>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<div class="method-source-code" id="new-source">
|
186
|
+
<pre><span class="ruby-comment"># File lib/hakto/safe_sdbm.rb, line 29</span>
|
187
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">db_path</span>)
|
188
|
+
<span class="ruby-ivar">@db_path</span> = <span class="ruby-identifier">db_path</span>
|
189
|
+
<span class="ruby-keyword">end</span></pre>
|
190
|
+
</div><!-- new-source -->
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</div><!-- new-method -->
|
198
|
+
|
199
|
+
|
200
|
+
</section><!-- public-class-method-details -->
|
201
|
+
|
202
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
203
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
204
|
+
|
205
|
+
|
206
|
+
<div id="method-i-print_each" class="method-detail ">
|
207
|
+
|
208
|
+
<div class="method-heading">
|
209
|
+
<span class="method-name">print_each</span><span
|
210
|
+
class="method-args">()</span>
|
211
|
+
<span class="method-click-advice">click to toggle source</span>
|
212
|
+
</div>
|
213
|
+
|
214
|
+
|
215
|
+
<div class="method-description">
|
216
|
+
|
217
|
+
<p>Print key-value pair with following format.</p>
|
218
|
+
|
219
|
+
<p>[key1]:value1</p>
|
220
|
+
|
221
|
+
<p>[key2]:value2</p>
|
222
|
+
|
223
|
+
<p>:</p>
|
224
|
+
|
225
|
+
<p>:</p>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-source-code" id="print_each-source">
|
230
|
+
<pre><span class="ruby-comment"># File lib/hakto/safe_sdbm.rb, line 48</span>
|
231
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_each</span>
|
232
|
+
<span class="ruby-identifier">operate</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">dbm</span><span class="ruby-operator">|</span>
|
233
|
+
<span class="ruby-identifier">dbm</span>.<span class="ruby-identifier">each_pair</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-node">"[#{key}]:#{value}"</span>}
|
234
|
+
<span class="ruby-keyword">end</span>
|
235
|
+
<span class="ruby-keyword">end</span></pre>
|
236
|
+
</div><!-- print_each-source -->
|
237
|
+
|
238
|
+
</div>
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
</div><!-- print_each-method -->
|
244
|
+
|
245
|
+
|
246
|
+
<div id="method-i-print_keys" class="method-detail ">
|
247
|
+
|
248
|
+
<div class="method-heading">
|
249
|
+
<span class="method-name">print_keys</span><span
|
250
|
+
class="method-args">()</span>
|
251
|
+
<span class="method-click-advice">click to toggle source</span>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method-description">
|
256
|
+
|
257
|
+
<p>Print keys with following format. key1, key2, key3, …</p>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-source-code" id="print_keys-source">
|
262
|
+
<pre><span class="ruby-comment"># File lib/hakto/safe_sdbm.rb, line 35</span>
|
263
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_keys</span>
|
264
|
+
<span class="ruby-identifier">print_flat</span>(<span class="ruby-string">"keys"</span>)
|
265
|
+
<span class="ruby-keyword">end</span></pre>
|
266
|
+
</div><!-- print_keys-source -->
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
</div><!-- print_keys-method -->
|
274
|
+
|
275
|
+
|
276
|
+
<div id="method-i-print_values" class="method-detail ">
|
277
|
+
|
278
|
+
<div class="method-heading">
|
279
|
+
<span class="method-name">print_values</span><span
|
280
|
+
class="method-args">()</span>
|
281
|
+
<span class="method-click-advice">click to toggle source</span>
|
282
|
+
</div>
|
283
|
+
|
284
|
+
|
285
|
+
<div class="method-description">
|
286
|
+
|
287
|
+
<p>Print values with following format. value1, value2, value3, …</p>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<div class="method-source-code" id="print_values-source">
|
292
|
+
<pre><span class="ruby-comment"># File lib/hakto/safe_sdbm.rb, line 56</span>
|
293
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">print_values</span>
|
294
|
+
<span class="ruby-identifier">print_flat</span>(<span class="ruby-string">"values"</span>)
|
295
|
+
<span class="ruby-keyword">end</span></pre>
|
296
|
+
</div><!-- print_values-source -->
|
297
|
+
|
298
|
+
</div>
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
</div><!-- print_values-method -->
|
304
|
+
|
305
|
+
|
306
|
+
</section><!-- public-instance-method-details -->
|
307
|
+
|
308
|
+
</section><!-- 5Buntitled-5D -->
|
309
|
+
|
310
|
+
</div><!-- documentation -->
|
311
|
+
|
312
|
+
|
313
|
+
<footer id="validator-badges">
|
314
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
315
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
316
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
317
|
+
</footer>
|
318
|
+
|
data/doc/Hakto.html
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>module Hakto - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="module">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>lib/hakto/safe_sdbm.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<div id="project-metadata">
|
65
|
+
<nav id="fileindex-section" class="section project-section">
|
66
|
+
<h3 class="section-header">Pages</h3>
|
67
|
+
|
68
|
+
<ul>
|
69
|
+
|
70
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
71
|
+
|
72
|
+
</ul>
|
73
|
+
</nav>
|
74
|
+
|
75
|
+
<nav id="classindex-section" class="section project-section">
|
76
|
+
<h3 class="section-header">Class and Module Index</h3>
|
77
|
+
|
78
|
+
<ul class="link-list">
|
79
|
+
|
80
|
+
<li><a href="./Hakto.html">Hakto</a>
|
81
|
+
|
82
|
+
<li><a href="./Hakto/SafeSDBM.html">Hakto::SafeSDBM</a>
|
83
|
+
|
84
|
+
<li><a href="./Object.html">Object</a>
|
85
|
+
|
86
|
+
<li><a href="./SafeSDBMTest.html">SafeSDBMTest</a>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</nav>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
</nav>
|
93
|
+
|
94
|
+
<div id="documentation">
|
95
|
+
<h1 class="module">module Hakto</h1>
|
96
|
+
|
97
|
+
<div id="description" class="description">
|
98
|
+
|
99
|
+
<p><a href="Hakto.html">Hakto</a> Safe SDBM Wrapper is a safe wrapper of SDBM
|
100
|
+
class.</p>
|
101
|
+
<dl class="rdoc-list note-list"><dt>Author
|
102
|
+
<dd>
|
103
|
+
<p>Moza USANE (<a
|
104
|
+
href="mailto:mozamimy@quellencode.org">mozamimy@quellencode.org</a>)</p>
|
105
|
+
</dd><dt>Copyright
|
106
|
+
<dd>
|
107
|
+
<p>Copyright © 2012 Moza USANE</p>
|
108
|
+
</dd><dt>License
|
109
|
+
<dd>
|
110
|
+
<p>MIT License (see the LICENSE file)</p>
|
111
|
+
</dd></dl>
|
112
|
+
|
113
|
+
</div><!-- description -->
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<!-- Methods -->
|
128
|
+
|
129
|
+
</section><!-- 5Buntitled-5D -->
|
130
|
+
|
131
|
+
</div><!-- documentation -->
|
132
|
+
|
133
|
+
|
134
|
+
<footer id="validator-badges">
|
135
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
136
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
137
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
138
|
+
</footer>
|
139
|
+
|