mongoid_tree 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/.rspec +1 -0
- data/.yardoc/checksums +4 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Gemfile +6 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/autotest/discover.rb +2 -0
- data/doc/_index.html +81 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +50 -0
- data/doc/css/style.css +277 -0
- data/doc/file.README.html +90 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +90 -0
- data/doc/js/app.js +138 -0
- data/doc/js/full_list.js +117 -0
- data/doc/js/jquery.js +19 -0
- data/doc/method_list.html +35 -0
- data/doc/top-level-namespace.html +78 -0
- data/features/mongoid_tree.feature +9 -0
- data/features/step_definitions/mongoid_tree_steps.rb +0 -0
- data/features/support/env.rb +4 -0
- data/lib/mongoid_tree.rb +0 -0
- data/spec/mongoid_tree_spec.rb +7 -0
- data/spec/spec_helper.rb +9 -0
- metadata +97 -0
data/.document
ADDED
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.yardoc/checksums
ADDED
Binary file
|
data/.yardoc/proxy_types
ADDED
Binary file
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Rainer Kuhn
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
= mongoid_tree
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2010 Rainer Kuhn. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "mongoid_tree"
|
8
|
+
gem.summary = %Q{Materialized paths based tree implementation for Mongoid}
|
9
|
+
gem.description = %Q{Fully featured tree implementation for Mongoid using materialized paths and relative associations. Featuring Depth and Breadth first search.}
|
10
|
+
gem.email = "rkuhn@littleweblab.com"
|
11
|
+
gem.homepage = "http://github.com/rayls/mongoid_tree"
|
12
|
+
gem.authors = ["Rainer Kuhn"]
|
13
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
|
+
end
|
15
|
+
Jeweler::GemcutterTasks.new
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
18
|
+
end
|
19
|
+
|
20
|
+
require 'rspec'
|
21
|
+
require 'rspec/core/rake_task'
|
22
|
+
Rspec::Core::RakeTask.new(:spec) do |spec|
|
23
|
+
spec.pattern = "spec/**/*_spec.rb"
|
24
|
+
end
|
25
|
+
|
26
|
+
Rspec::Core::RakeTask.new(:rcov) do |spec|
|
27
|
+
spec.pattern = "spec/**/*_spec.rb"
|
28
|
+
spec.rcov = true
|
29
|
+
end
|
30
|
+
|
31
|
+
task :spec => :check_dependencies
|
32
|
+
|
33
|
+
begin
|
34
|
+
require 'cucumber/rake/task'
|
35
|
+
Cucumber::Rake::Task.new(:features)
|
36
|
+
|
37
|
+
task :features => :check_dependencies
|
38
|
+
rescue LoadError
|
39
|
+
task :features do
|
40
|
+
abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
task :default => :spec
|
45
|
+
|
46
|
+
begin
|
47
|
+
require 'yard'
|
48
|
+
YARD::Rake::YardocTask.new
|
49
|
+
rescue LoadError
|
50
|
+
task :yardoc do
|
51
|
+
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
52
|
+
end
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
data/doc/_index.html
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Documentation by YARD 0.5.8</title>
|
7
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
|
27
|
+
<span class="title"></span>
|
28
|
+
|
29
|
+
|
30
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="search">
|
34
|
+
<a id="class_list_link" href="#">Class List</a>
|
35
|
+
<a id="method_list_link" href="#">Method List</a>
|
36
|
+
<a id ="file_list_link" href="#">File List</a>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="clear"></div>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<iframe id="search_frame"></iframe>
|
43
|
+
|
44
|
+
<div id="content"><div id="listing">
|
45
|
+
<h1 class="noborder title">Documentation by YARD 0.5.8</h1>
|
46
|
+
<h1 class="alphaindex">Alphabetic Index</h1>
|
47
|
+
|
48
|
+
|
49
|
+
<h2>File Listing</h2>
|
50
|
+
<ul id="files">
|
51
|
+
|
52
|
+
|
53
|
+
<li class="r1"><a href="index.html" title="README">README</a></li>
|
54
|
+
|
55
|
+
|
56
|
+
</ul>
|
57
|
+
|
58
|
+
<div class="clear"></div>
|
59
|
+
|
60
|
+
<h2>Namespace Listing A-Z</h2>
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<table>
|
66
|
+
<tr>
|
67
|
+
<td valign='top' width="33%">
|
68
|
+
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div></div>
|
73
|
+
|
74
|
+
<div id="footer">
|
75
|
+
Generated on Wed Jul 7 15:45:57 2010 by
|
76
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
77
|
+
0.5.8 (ruby-1.9.2).
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</body>
|
81
|
+
</html>
|
data/doc/class_list.html
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
9
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
10
|
+
<base id="base_target" target="_parent" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<script type="text/javascript" charset="utf-8">
|
14
|
+
if (window.top.frames.main) {
|
15
|
+
document.getElementById('base_target').target = 'main';
|
16
|
+
document.body.className = 'frames';
|
17
|
+
}
|
18
|
+
</script>
|
19
|
+
<div id="content">
|
20
|
+
<h1 id="full_list_header">Class List</h1>
|
21
|
+
<div id="nav">
|
22
|
+
<a target="_self" href="class_list.html">Classes</a> |
|
23
|
+
<a target="_self" href="method_list.html">Methods</a> |
|
24
|
+
<a target="_self" href="file_list.html">Files</a>
|
25
|
+
</div>
|
26
|
+
<div id="search">Search: <input type="text" /></div>
|
27
|
+
|
28
|
+
<ul id="full_list" class="class">
|
29
|
+
<li><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></li>
|
30
|
+
|
31
|
+
|
32
|
+
</ul>
|
33
|
+
</div>
|
34
|
+
</body>
|
35
|
+
</html>
|
36
|
+
|
data/doc/css/common.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/* Override this file with custom rules */
|
@@ -0,0 +1,50 @@
|
|
1
|
+
body {
|
2
|
+
margin: 0;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
height: 101%;
|
6
|
+
overflow-x: hidden;
|
7
|
+
}
|
8
|
+
|
9
|
+
h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; }
|
10
|
+
.clear { clear: both; }
|
11
|
+
#search { position: absolute; right: 5px; top: 9px; }
|
12
|
+
#full_list { padding: 0; list-style: none; margin-left: 0; }
|
13
|
+
#full_list ul { padding: 0; }
|
14
|
+
#full_list li { padding: 5px; padding-left: 12px; margin: 0; font-size: 1.1em; list-style: none; }
|
15
|
+
#noresults { display: none; padding: 7px 12px; }
|
16
|
+
ul.collapsed ul, ul.collapsed li { display: none; }
|
17
|
+
li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; }
|
18
|
+
li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; }
|
19
|
+
li { color: #888; cursor: pointer; }
|
20
|
+
li.deprecated { text-decoration: line-through; font-style: italic; }
|
21
|
+
li.r1 { background: #f0f0f0; }
|
22
|
+
li.r2 { background: #fafafa; }
|
23
|
+
li:hover { background: #ddd; }
|
24
|
+
li small:before { content: "("; }
|
25
|
+
li small:after { content: ")"; }
|
26
|
+
li small.search_info { display: none; }
|
27
|
+
a:link, a:visited { text-decoration: none; color: #05a; }
|
28
|
+
li.clicked { background: #05a; color: #ccc; }
|
29
|
+
li.clicked a:link, li.clicked a:visited { color: #eee; }
|
30
|
+
li.clicked a.toggle { opacity: 0.5; background-position: bottom right; }
|
31
|
+
li.collapsed.clicked a.toggle { background-position: top right; }
|
32
|
+
#search input { border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
33
|
+
#nav { margin-left: 10px; font-size: 0.9em; display: none; color: #aaa; }
|
34
|
+
#nav a:link, #nav a:visited { color: #358; }
|
35
|
+
#nav a:hover { background: transparent; color: #5af; }
|
36
|
+
|
37
|
+
.frames #content h1 { margin-top: 0; }
|
38
|
+
.frames li { white-space: nowrap; cursor: normal; }
|
39
|
+
.frames li small { display: block; font-size: 0.8em; }
|
40
|
+
.frames li small:before { content: ""; }
|
41
|
+
.frames li small:after { content: ""; }
|
42
|
+
.frames li small.search_info { display: none; }
|
43
|
+
.frames #search { position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; }
|
44
|
+
.frames #search input { width: 110px; }
|
45
|
+
.frames #nav { display: block; }
|
46
|
+
|
47
|
+
#full_list.insearch li { display: none; }
|
48
|
+
#full_list.insearch li.found { display: list-item; padding-left: 10px; }
|
49
|
+
#full_list.insearch li a.toggle { display: none; }
|
50
|
+
#full_list.insearch li small.search_info { display: block; }
|
data/doc/css/style.css
ADDED
@@ -0,0 +1,277 @@
|
|
1
|
+
body {
|
2
|
+
padding: 0 20px;
|
3
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
4
|
+
font-size: 13px;
|
5
|
+
}
|
6
|
+
body.frames { padding: 0 5px; }
|
7
|
+
h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
|
8
|
+
h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
|
9
|
+
h1.title { margin-bottom: 10px; }
|
10
|
+
h1.alphaindex { margin-top: 0; font-size: 22px; }
|
11
|
+
h2 {
|
12
|
+
padding: 0;
|
13
|
+
padding-bottom: 3px;
|
14
|
+
border-bottom: 1px #aaa solid;
|
15
|
+
font-size: 1.4em;
|
16
|
+
margin: 1.8em 0 0.5em;
|
17
|
+
}
|
18
|
+
h2 small { font-weight: normal; font-size: 0.7em; display: block; float: right; }
|
19
|
+
.clear { clear: both; }
|
20
|
+
.inline { display: inline; }
|
21
|
+
.inline p:first-child { display: inline; }
|
22
|
+
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
|
23
|
+
.docstring h1 { font-size: 1.2em; }
|
24
|
+
.docstring h2 { font-size: 1.1em; }
|
25
|
+
.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
|
26
|
+
|
27
|
+
.note {
|
28
|
+
color: #222;
|
29
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
30
|
+
background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
|
31
|
+
}
|
32
|
+
.note.todo { background: #ffffc5; border-color: #ececaa; }
|
33
|
+
.note.returns_void { background: #efefef; }
|
34
|
+
.note.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
35
|
+
.note.private { background: #ffffc5; border-color: #ececaa; }
|
36
|
+
.note.title { text-transform: lowercase; padding: 1px 5px; margin-left: 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; }
|
37
|
+
h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
|
38
|
+
.note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
39
|
+
.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
|
40
|
+
.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
41
|
+
.note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
|
42
|
+
|
43
|
+
h3.inherited {
|
44
|
+
font-style: italic;
|
45
|
+
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
46
|
+
font-weight: normal;
|
47
|
+
padding: 0;
|
48
|
+
margin: 0;
|
49
|
+
margin-top: 12px;
|
50
|
+
margin-bottom: 3px;
|
51
|
+
font-size: 13px;
|
52
|
+
}
|
53
|
+
p.inherited {
|
54
|
+
padding: 0;
|
55
|
+
margin: 0;
|
56
|
+
margin-left: 25px;
|
57
|
+
}
|
58
|
+
|
59
|
+
dl.box {
|
60
|
+
width: 520px;
|
61
|
+
font-size: 1em;
|
62
|
+
}
|
63
|
+
dl.box dt {
|
64
|
+
float: left;
|
65
|
+
display: block;
|
66
|
+
width: 100px;
|
67
|
+
margin: 0;
|
68
|
+
text-align: right;
|
69
|
+
font-weight: bold;
|
70
|
+
border: 1px solid #aaa;
|
71
|
+
border-width: 1px 0px 0px 1px;
|
72
|
+
padding: 6px 0;
|
73
|
+
padding-right: 10px;
|
74
|
+
}
|
75
|
+
dl.box dd {
|
76
|
+
float: left;
|
77
|
+
display: block;
|
78
|
+
width: 380px;
|
79
|
+
margin: 0;
|
80
|
+
padding: 6px 0;
|
81
|
+
padding-right: 20px;
|
82
|
+
border: 1px solid #aaa;
|
83
|
+
border-width: 1px 1px 0 0;
|
84
|
+
}
|
85
|
+
dl.box .last {
|
86
|
+
border-bottom: 1px solid #aaa;
|
87
|
+
}
|
88
|
+
dl.box .r1 { background: #eee; }
|
89
|
+
|
90
|
+
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
91
|
+
#files { padding-left: 15px; font-size: 1.1em; }
|
92
|
+
|
93
|
+
#files { padding: 0; }
|
94
|
+
#files li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
|
95
|
+
|
96
|
+
dl.constants { margin-left: 40px; }
|
97
|
+
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
98
|
+
dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
|
99
|
+
|
100
|
+
.summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
|
101
|
+
.summary_desc tt { font-size: 0.9em; }
|
102
|
+
dl.constants .docstring { margin-left: 32px; font-size: 0.9em; font-weight: normal; }
|
103
|
+
dl.constants .discussion *:first-child { margin-top: 0; }
|
104
|
+
dl.constants .discussion *:last-child { margin-bottom: 0; }
|
105
|
+
|
106
|
+
.method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
|
107
|
+
.method_details.first { border: 0; }
|
108
|
+
p.signature {
|
109
|
+
font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
|
110
|
+
padding: 6px 10px; margin-top: 18px;
|
111
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
112
|
+
}
|
113
|
+
p.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
|
114
|
+
p.signature .overload { display: block; }
|
115
|
+
p.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
|
116
|
+
p.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
|
117
|
+
p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
|
118
|
+
|
119
|
+
.tags h3 { font-size: 1em; margin-bottom: 0; }
|
120
|
+
.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
|
121
|
+
.tags ul li { margin-bottom: 3px; }
|
122
|
+
.tags ul .name { font-family: monospace; font-weight: bold; }
|
123
|
+
.tags ul .note { padding: 3px 6px; }
|
124
|
+
.tags { margin-bottom: 12px; }
|
125
|
+
|
126
|
+
.tags .examples h3 { margin-bottom: 10px; }
|
127
|
+
.tags .examples h4 { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
|
128
|
+
|
129
|
+
.tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
|
130
|
+
.tags .overload .overload_item .signature {
|
131
|
+
padding: 2px 8px;
|
132
|
+
background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
|
133
|
+
}
|
134
|
+
.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
|
135
|
+
.tags .overload .docstring { margin-top: 15px; }
|
136
|
+
|
137
|
+
.defines { display: none; }
|
138
|
+
|
139
|
+
#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
|
140
|
+
|
141
|
+
.showSource { font-size: 0.9em; }
|
142
|
+
.showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
|
143
|
+
|
144
|
+
#content a:link, #content a:visited { text-decoration: none; color: #05a; }
|
145
|
+
#content a:hover { background: #ffffa5; }
|
146
|
+
.docstring { margin-right: 6em; }
|
147
|
+
|
148
|
+
ul.summary {
|
149
|
+
list-style: none;
|
150
|
+
font-family: monospace;
|
151
|
+
font-size: 1em;
|
152
|
+
line-height: 1.5em;
|
153
|
+
}
|
154
|
+
ul.summary a:link, ul.summary a:visited {
|
155
|
+
text-decoration: none; font-size: 1.1em;
|
156
|
+
}
|
157
|
+
ul.summary li { margin-bottom: 5px; }
|
158
|
+
.summary .summary_signature {
|
159
|
+
padding: 1px 10px;
|
160
|
+
background: #eaeaff; border: 1px solid #dfdfe5;
|
161
|
+
-moz-border-radius: 3px; -webkit-border-radius: 3px;
|
162
|
+
}
|
163
|
+
.summary_signature:hover { background: #eeeeff; cursor: pointer; }
|
164
|
+
ul.summary.compact li { display: inline; margin-right: 5px; line-height: 2.6em;}
|
165
|
+
ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; }
|
166
|
+
#content .summary_signature:hover a:link,
|
167
|
+
#content .summary_signature:hover a:visited {
|
168
|
+
background: transparent;
|
169
|
+
color: #48f;
|
170
|
+
}
|
171
|
+
|
172
|
+
p.inherited a { font-family: monospace; font-size: 0.9em; }
|
173
|
+
p.inherited { word-spacing: 5px; font-size: 1.2em; }
|
174
|
+
|
175
|
+
p.children { font-size: 1.2em; }
|
176
|
+
p.children a { font-size: 0.9em; }
|
177
|
+
p.children strong { font-size: 0.8em; }
|
178
|
+
p.children strong.modules { padding-left: 5px; }
|
179
|
+
|
180
|
+
ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
|
181
|
+
ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
|
182
|
+
ul.fullTree li { text-align: center; }
|
183
|
+
ul.fullTree li.next:before { font-size: 1.2em; content: '\2B06'; color: #bbb; display: block; margin-top: 3px; }
|
184
|
+
|
185
|
+
#search { position: absolute; right: 14px; top: 0px; }
|
186
|
+
#search a:link, #search a:visited {
|
187
|
+
display: block; float: left; margin-right: 4px;
|
188
|
+
padding: 8px 10px; text-decoration: none; color: #05a; background: #eaeaff;
|
189
|
+
border: 1px solid #d8d8e5;
|
190
|
+
-moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
|
191
|
+
-webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
|
192
|
+
}
|
193
|
+
#search a:hover { background: #eef; color: #06b; }
|
194
|
+
#search a.active {
|
195
|
+
background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
|
196
|
+
-moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
|
197
|
+
-webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
|
198
|
+
}
|
199
|
+
#search a.inactive { color: #999; }
|
200
|
+
.frames #search { display: none; }
|
201
|
+
.inheritanceTree, .toggleDefines { float: right; }
|
202
|
+
|
203
|
+
#menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
|
204
|
+
#menu .title, #menu a { font-size: 0.7em; }
|
205
|
+
#menu .title a { font-size: 1em; }
|
206
|
+
#menu .title { color: #555; }
|
207
|
+
#menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
208
|
+
#menu a:hover { color: #05a; }
|
209
|
+
#menu .noframes { display: none; }
|
210
|
+
.frames #menu .noframes { display: inline; float: right; }
|
211
|
+
|
212
|
+
#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
|
213
|
+
#footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
214
|
+
#footer a:hover { color: #05a; }
|
215
|
+
|
216
|
+
#listing ul.alpha { font-size: 1.1em; }
|
217
|
+
#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
|
218
|
+
#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
|
219
|
+
#listing ul.alpha ul { margin: 0; padding-left: 15px; }
|
220
|
+
#listing ul small { color: #666; font-size: 0.7em; }
|
221
|
+
|
222
|
+
li.r1 { background: #f0f0f0; }
|
223
|
+
li.r2 { background: #fafafa; }
|
224
|
+
|
225
|
+
#search_frame {
|
226
|
+
background: #fff;
|
227
|
+
display: none;
|
228
|
+
position: absolute;
|
229
|
+
top: 36px;
|
230
|
+
right: 18px;
|
231
|
+
width: 500px;
|
232
|
+
height: 80%;
|
233
|
+
overflow-y: scroll;
|
234
|
+
border: 1px solid #999;
|
235
|
+
border-collapse: collapse;
|
236
|
+
-webkit-box-shadow: -7px 5px 25px #aaa;
|
237
|
+
-moz-box-shadow: -7px 5px 25px #aaa;
|
238
|
+
-moz-border-radius: 2px;
|
239
|
+
-webkit-border-radius: 2px;
|
240
|
+
}
|
241
|
+
|
242
|
+
#content ul.summary li.deprecated a:link,
|
243
|
+
#content ul.summary li.deprecated a:visited { text-decoration: line-through; font-style: italic; }
|
244
|
+
|
245
|
+
/* syntax highlighting */
|
246
|
+
.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
|
247
|
+
#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
|
248
|
+
#filecontents pre.code, .docstring pre.code { display: block; }
|
249
|
+
.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
|
250
|
+
#filecontents pre.code, .docstring pre.code,
|
251
|
+
.tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
|
252
|
+
pre.code { color: #000; }
|
253
|
+
pre.code .info.file { color: #555; }
|
254
|
+
pre.code .val { color: #036A07; }
|
255
|
+
pre.code .tstring_content,
|
256
|
+
pre.code .heredoc_beg, pre.code .heredoc_end,
|
257
|
+
pre.code .qwords_beg, pre.code .qwords_end,
|
258
|
+
pre.code .tstring, pre.code .dstring { color: #036A07; }
|
259
|
+
pre.code .fid, pre.code .id.new, pre.code .id.to_s,
|
260
|
+
pre.code .id.to_sym, pre.code .id.to_f,
|
261
|
+
pre.code .dot + pre.code .id,
|
262
|
+
pre.code .id.to_i pre.code .id.each { color: #0085FF; }
|
263
|
+
pre.code .comment { color: #0066FF; }
|
264
|
+
pre.code .const, pre.code .constant { color: #585CF6; }
|
265
|
+
pre.code .symbol { color: #C5060B; }
|
266
|
+
pre.code .kw,
|
267
|
+
pre.code .label,
|
268
|
+
pre.code .id.require,
|
269
|
+
pre.code .id.extend,
|
270
|
+
pre.code .id.include { color: #0000FF; }
|
271
|
+
pre.code .ivar { color: #318495; }
|
272
|
+
pre.code .gvar,
|
273
|
+
pre.code .id.backref,
|
274
|
+
pre.code .id.nth_ref { color: #6D79DE; }
|
275
|
+
pre.code .regexp, .dregexp { color: #036A07; }
|
276
|
+
pre.code a { border-bottom: 1px dotted #bbf; }
|
277
|
+
|