quarry 0.3.0 → 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/CHANGES +40 -3
- data/MANIFEST +290 -78
- data/README +51 -37
- data/RELEASE +12 -0
- data/VERSION +1 -1
- data/bin/quarry +117 -0
- data/bin/quarry-doc +26 -0
- data/bin/ruby-break +10 -0
- data/bin/{xact-ruby → ruby-xacto} +0 -0
- data/doc/assets/images/clipboard.jpg +0 -0
- data/doc/assets/images/clipboard2.png +0 -0
- data/doc/assets/images/darksilver.png +0 -0
- data/doc/assets/images/icon/book.jpg +0 -0
- data/doc/assets/images/icon/download.gif +0 -0
- data/doc/assets/images/icon/letter_r.png +0 -0
- data/doc/assets/images/icon/license.png +0 -0
- data/doc/assets/images/icon/software.png +0 -0
- data/doc/assets/images/icon/source.png +0 -0
- data/doc/assets/images/miner.jpg +0 -0
- data/doc/assets/images/rbrylmtrx.png +0 -0
- data/doc/assets/images/ruby.gif +0 -0
- data/doc/assets/images/runneth.png +0 -0
- data/doc/assets/images/silver.gif +0 -0
- data/doc/assets/images/test.jpg +0 -0
- data/doc/assets/jquery/jquery.js +1 -0
- data/doc/assets/jquery/jquery.tabs.js +1 -0
- data/doc/assets/rdoc_ad.html +12 -0
- data/doc/assets/styles/index.css +138 -0
- data/doc/guide/stubs.md +125 -0
- data/doc/index.html +285 -0
- data/doc/log/bstats/stats.html +39 -0
- data/doc/log/notes.xml +32 -0
- data/doc/log/stats.html +25 -0
- data/doc/log/stats.log +14 -0
- data/doc/log/syntax.log +0 -0
- data/doc/rdoc/classes/Assertion/False.html +151 -106
- data/doc/rdoc/classes/Assertion/True.html +128 -113
- data/doc/rdoc/classes/Assertion.html +147 -77
- data/doc/rdoc/classes/Kernel.html +84 -65
- data/doc/rdoc/classes/Method.html +123 -92
- data/doc/rdoc/classes/Object.html +468 -115
- data/doc/rdoc/classes/Quarry/Break.html +231 -0
- data/doc/rdoc/classes/Quarry/Command.html +443 -0
- data/doc/rdoc/classes/Quarry/Extract.html +215 -0
- data/doc/rdoc/classes/Quarry/MethodProbe.html +203 -145
- data/doc/rdoc/classes/Quarry/Mock/Delegator.html +179 -0
- data/doc/rdoc/classes/Quarry/Mock/Setter.html +175 -0
- data/doc/rdoc/classes/Quarry/Mock.html +211 -67
- data/doc/rdoc/classes/Quarry/Spec/Comment.html +237 -0
- data/doc/rdoc/classes/Quarry/Spec/Config.html +257 -0
- data/doc/rdoc/classes/Quarry/Spec/Context.html +154 -0
- data/doc/rdoc/classes/Quarry/Spec/Document.html +382 -0
- data/doc/rdoc/classes/Quarry/Spec/Header.html +195 -0
- data/doc/rdoc/classes/Quarry/Spec/Macro.html +166 -0
- data/doc/rdoc/classes/Quarry/Spec/Markup.html +279 -0
- data/doc/rdoc/classes/Quarry/Spec/Reporter/DotProgress.html +234 -0
- data/doc/rdoc/classes/Quarry/Spec/Reporter/Summary.html +294 -0
- data/doc/rdoc/classes/Quarry/Spec/Reporter/Verbatim.html +311 -0
- data/doc/rdoc/classes/Quarry/Spec/Runner.html +352 -0
- data/doc/rdoc/classes/Quarry/Spec/Step.html +190 -0
- data/doc/rdoc/classes/Quarry/Spec/Template.html +205 -0
- data/doc/rdoc/classes/Quarry/Stub/Delegator.html +179 -0
- data/doc/rdoc/classes/Quarry/Stub/Setter.html +175 -0
- data/doc/rdoc/classes/Quarry/Stub.html +224 -0
- data/doc/rdoc/classes/Quarry.html +153 -154
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +126 -76
- data/doc/rdoc/files/COPYING.html +84 -73
- data/doc/rdoc/files/README.html +135 -111
- data/doc/rdoc/files/RELEASE.html +122 -0
- data/doc/rdoc/files/VERSION.html +85 -74
- data/doc/rdoc/files/bin/quarry-doc.html +109 -0
- data/doc/rdoc/files/bin/quarry.html +109 -0
- data/doc/rdoc/files/bin/ruby-break.html +108 -0
- data/doc/rdoc/files/bin/ruby-xacto.html +101 -0
- data/doc/rdoc/files/lib/quarry/assert_rb.html +155 -0
- data/doc/rdoc/files/lib/quarry/break_rb.html +101 -0
- data/doc/rdoc/files/lib/quarry/extract_rb.html +108 -0
- data/doc/rdoc/files/lib/quarry/loadmonitor_rb.html +80 -71
- data/doc/rdoc/files/lib/quarry/spec/config_rb.html +101 -0
- data/doc/rdoc/files/lib/quarry/spec/context_rb.html +101 -0
- data/doc/rdoc/files/lib/quarry/spec/document_rb.html +111 -0
- data/doc/rdoc/files/lib/quarry/spec/markup_rb.html +108 -0
- data/doc/rdoc/files/lib/quarry/spec/reporter/dotprogress_rb.html +108 -0
- data/doc/rdoc/files/lib/quarry/spec/reporter/summary_rb.html +108 -0
- data/doc/rdoc/files/lib/quarry/spec/reporter/verbatim_rb.html +108 -0
- data/doc/rdoc/files/lib/quarry/spec/reporter_rb.html +109 -0
- data/doc/rdoc/files/lib/quarry/spec/runner_rb.html +109 -0
- data/doc/rdoc/files/lib/quarry/spec/step_rb.html +101 -0
- data/doc/rdoc/files/lib/quarry/spec/template_rhtml.html +228 -0
- data/doc/rdoc/files/lib/quarry/spec_rb.html +113 -0
- data/doc/rdoc/files/lib/quarry/stub/mock_rb.html +101 -0
- data/doc/rdoc/files/lib/quarry/stub/probe_rb.html +122 -0
- data/doc/rdoc/files/lib/quarry/stub/spec_txt.html +118 -0
- data/doc/rdoc/files/lib/quarry/stub/stub_rb.html +101 -0
- data/doc/rdoc/fr_class_index.html +48 -52
- data/doc/rdoc/fr_file_index.html +47 -57
- data/doc/rdoc/fr_method_index.html +109 -69
- data/doc/rdoc/index.html +12 -14
- data/doc/rdoc/rdoc-style.css +154 -121
- data/doc/ri/Assertion/False/cdesc-False.yaml +5 -3
- data/doc/ri/Assertion/True/cdesc-True.yaml +4 -2
- data/doc/ri/Assertion/True/message-c.yaml +2 -2
- data/doc/ri/Assertion/True/message-i.yaml +1 -1
- data/doc/ri/Assertion/True/method_missing-i.yaml +4 -3
- data/doc/ri/Assertion/cdesc-Assertion.yaml +24 -1
- data/doc/ri/Object/assert%21-i.yaml +7 -4
- data/doc/ri/Object/assert-i.yaml +3 -2
- data/doc/ri/Object/assert_raises%21-i.yaml +12 -0
- data/doc/ri/Object/assert_raises-i.yaml +15 -0
- data/doc/ri/Object/cdesc-Object.yaml +24 -2
- data/doc/ri/{Quarry/Design/Specification/outline-i.yaml → Object/mock-i.yaml} +4 -4
- data/doc/ri/Object/refute-i.yaml +13 -0
- data/doc/ri/Object/refute_raises-i.yaml +17 -0
- data/doc/ri/Object/remove-i.yaml +12 -0
- data/doc/ri/{Quarry/Design/check-c.yaml → Object/should-i.yaml} +4 -4
- data/doc/ri/Object/should_not-i.yaml +12 -0
- data/doc/ri/Object/should_not_raise-i.yaml +12 -0
- data/doc/ri/Object/should_raise-i.yaml +12 -0
- data/doc/ri/{Quarry/Mock/Object/mock-c.yaml → Object/stub-i.yaml} +5 -5
- data/doc/ri/{Module/cdesc-Module.yaml → Quarry/Break/cdesc-Break.yaml} +10 -8
- data/doc/ri/Quarry/Break/edit-i.yaml +11 -0
- data/doc/ri/Quarry/Break/new-c.yaml +11 -0
- data/doc/ri/Quarry/Extract/cdesc-Extract.yaml +26 -0
- data/doc/ri/Quarry/Extract/create_test-i.yaml +12 -0
- data/doc/ri/Quarry/Extract/extract_test_from_file-i.yaml +12 -0
- data/doc/ri/Quarry/Extract/test_extract-i.yaml +18 -0
- data/doc/ri/Quarry/Mock/Delegator/cdesc-Delegator.yaml +20 -0
- data/doc/ri/Quarry/{Design/Specification/Context → Mock/Delegator}/method_missing-i.yaml +2 -2
- data/doc/ri/Quarry/{Design/specification-c.yaml → Mock/Delegator/new-c.yaml} +3 -3
- data/doc/ri/{Module/method_added-i.yaml → Quarry/Mock/Setter/%3d%3d-i.yaml} +3 -3
- data/doc/ri/Quarry/Mock/Setter/cdesc-Setter.yaml +18 -0
- data/doc/ri/Quarry/Mock/Setter/new-c.yaml +10 -0
- data/doc/ri/Quarry/Mock/__table__-i.yaml +11 -0
- data/doc/ri/Quarry/Mock/cdesc-Mock.yaml +17 -7
- data/doc/ri/Quarry/Mock/method_missing-i.yaml +12 -0
- data/doc/ri/Quarry/{Design/outline-c.yaml → Mock/new-c.yaml} +2 -2
- data/doc/ri/Quarry/Spec/Comment/cdesc-Comment.yaml +33 -0
- data/doc/ri/Quarry/Spec/Comment/macro%3f-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Comment/new-c.yaml +10 -0
- data/doc/ri/Quarry/Spec/Comment/type-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Config/after-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Config/after_spec-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Config/before-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Config/before_spec-i.yaml +12 -0
- data/doc/ri/Quarry/{Design/Specification/Context/cdesc-Context.yaml → Spec/Config/cdesc-Config.yaml} +11 -9
- data/doc/ri/Quarry/{Mock/Object/mocks-c.yaml → Spec/Config/new-c.yaml} +2 -2
- data/doc/ri/Quarry/Spec/Context/cdesc-Context.yaml +21 -0
- data/doc/ri/Quarry/{Design/specifications-c.yaml → Spec/Context/new-c.yaml} +2 -2
- data/doc/ri/Quarry/Spec/Document/cdesc-Document.yaml +76 -0
- data/doc/ri/Quarry/Spec/Document/generate-i.yaml +12 -0
- data/doc/ri/Quarry/{Mock/Object/echo-c.yaml → Spec/Document/new-c.yaml} +4 -4
- data/doc/ri/Quarry/Spec/Document/quiet%3f-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Document/require_rdoc-i.yaml +11 -0
- data/doc/ri/Quarry/Spec/Document/save-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Document/template-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Header/cdesc-Header.yaml +30 -0
- data/doc/ri/Quarry/Spec/Header/new-c.yaml +10 -0
- data/doc/ri/Quarry/Spec/Macro/cdesc-Macro.yaml +22 -0
- data/doc/ri/Quarry/Spec/Macro/new-c.yaml +10 -0
- data/doc/ri/Quarry/Spec/Markup/cdesc-Markup.yaml +31 -0
- data/doc/ri/Quarry/Spec/Markup/description-i.yaml +11 -0
- data/doc/ri/Quarry/Spec/Markup/new-c.yaml +11 -0
- data/doc/ri/Quarry/Spec/Markup/parse-i.yaml +11 -0
- data/doc/ri/Quarry/Spec/Markup/parse_section-i.yaml +11 -0
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/cdesc-DotProgress.yaml +21 -0
- data/doc/ri/Quarry/{Design/Specification/Context/specifications-i.yaml → Spec/Reporter/DotProgress/report_intro-i.yaml} +2 -2
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/report_step-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/DotProgress/report_summary-i.yaml +16 -0
- data/doc/ri/Quarry/Spec/Reporter/Summary/cdesc-Summary.yaml +31 -0
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_comment-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_error-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_fail-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_header-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Summary/report_macro-i.yaml +10 -0
- data/doc/ri/Quarry/{Design/Specification/Context/before-i.yaml → Spec/Reporter/Summary/report_pass-i.yaml} +3 -3
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/cdesc-Verbatim.yaml +29 -0
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_comment-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_error-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_fail-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_header-i.yaml +16 -0
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_macro-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/Verbatim/report_pass-i.yaml +10 -0
- data/doc/ri/Quarry/Spec/Reporter/cdesc-Reporter.yaml +20 -0
- data/doc/ri/Quarry/Spec/Runner/cdesc-Runner.yaml +47 -0
- data/doc/ri/Quarry/{Design/Specification → Spec/Runner}/check-i.yaml +3 -3
- data/doc/ri/Quarry/Spec/Runner/check_spec-i.yaml +12 -0
- data/doc/ri/Quarry/{Design/Specification → Spec/Runner}/new-c.yaml +2 -2
- data/doc/ri/Quarry/Spec/Runner/run_step-i.yaml +12 -0
- data/doc/ri/Quarry/Spec/Step/cdesc-Step.yaml +30 -0
- data/doc/ri/Quarry/Spec/Step/new-c.yaml +10 -0
- data/doc/ri/Quarry/Spec/Template/cdesc-Template.yaml +31 -0
- data/doc/ri/Quarry/Spec/Template/new-c.yaml +11 -0
- data/doc/ri/Quarry/{Design/Specification/Context/after-i.yaml → Spec/Template/parse_template-i.yaml} +3 -3
- data/doc/ri/Quarry/Spec/cdesc-Spec.yaml +15 -0
- data/doc/ri/Quarry/Stub/Delegator/cdesc-Delegator.yaml +20 -0
- data/doc/ri/Quarry/Stub/Delegator/method_missing-i.yaml +10 -0
- data/doc/ri/Quarry/Stub/Delegator/new-c.yaml +10 -0
- data/doc/ri/Quarry/Stub/Setter/%3d%3d-i.yaml +10 -0
- data/doc/ri/Quarry/Stub/Setter/cdesc-Setter.yaml +18 -0
- data/doc/ri/Quarry/Stub/Setter/new-c.yaml +10 -0
- data/doc/ri/Quarry/Stub/__table__-i.yaml +11 -0
- data/doc/ri/Quarry/Stub/cdesc-Stub.yaml +23 -0
- data/doc/ri/Quarry/Stub/method_missing-i.yaml +11 -0
- data/doc/ri/Quarry/Stub/new-c.yaml +10 -0
- data/doc/ri/Quarry/cdesc-Quarry.yaml +2 -3
- data/doc/ri/created.rid +1 -1
- data/doc/spec/stub.html +394 -0
- data/lib/quarry/assert.rb +198 -0
- data/lib/quarry/break.rb +51 -0
- data/lib/quarry/extract.rb +135 -0
- data/lib/quarry/loadmonitor.rb +6 -1
- data/lib/quarry/spec/config.rb +32 -0
- data/lib/quarry/spec/context.rb +19 -0
- data/lib/quarry/spec/document.rb +130 -0
- data/lib/quarry/spec/markup.rb +85 -0
- data/lib/quarry/spec/reporter/dotprogress.rb +66 -0
- data/lib/quarry/spec/reporter/summary.rb +74 -0
- data/lib/quarry/spec/reporter/verbatim.rb +87 -0
- data/lib/quarry/spec/reporter.rb +74 -0
- data/lib/quarry/spec/runner.rb +127 -0
- data/lib/quarry/spec/step.rb +78 -0
- data/lib/quarry/spec/template.rhtml +116 -0
- data/lib/quarry/spec.rb +7 -0
- data/lib/quarry/stub/mock.rb +94 -0
- data/lib/quarry/{methodprobe.rb → stub/probe.rb} +0 -0
- data/lib/quarry/stub/spec.txt +113 -0
- data/lib/quarry/stub/stub.rb +93 -0
- data/meta/abstract +5 -0
- data/meta/authors +1 -0
- data/meta/created +1 -0
- data/meta/homepage +1 -0
- data/meta/requires +1 -0
- data/meta/summary +1 -0
- data/spec/basic.rd +20 -0
- data/spec/complex.rd +50 -0
- data/spec/mock.rd +53 -0
- data/spec/stub.rd +61 -0
- data/{lib/quarry → work/consider}/document.rb +0 -0
- data/work/consider/fixture.rb +153 -0
- data/{lib/quarry → work/deprecated}/assert/must.rb +1 -0
- data/{lib/quarry → work/deprecated}/assert/should.rb +0 -0
- data/work/deprecated/build.rb +82 -0
- data/work/deprecated/mock/file.rb +11 -0
- data/work/deprecated/mock/mock.0.rb +77 -0
- data/work/deprecated/overlay.rb +64 -0
- data/work/deprecated/spec.rb +195 -0
- data/work/deprecated/stub/stub.0.rb +180 -0
- data/work/deprecated/stub/stub.1.rb +114 -0
- data/work/deprecated/stub/test_stub.rb +66 -0
- data/work/deprecated/test/case.rb +141 -0
- data/work/sandbox/assert.rb +100 -0
- data/work/sandbox/bug.rb +49 -0
- data/work/sandbox/build/announce.rb +213 -0
- data/work/sandbox/build/check.rb +109 -0
- data/work/sandbox/build/gem.rb +235 -0
- data/work/sandbox/build/make.rb +118 -0
- data/work/sandbox/build/manpage.rb +201 -0
- data/work/sandbox/build/notes.rb +214 -0
- data/work/sandbox/build/pack.rb +228 -0
- data/work/sandbox/build/rdoc.rb +289 -0
- data/work/sandbox/build/rubyforge.rb +91 -0
- data/work/sandbox/build/sign.rb +241 -0
- data/work/sandbox/build/stamp.rb +37 -0
- data/work/sandbox/build/stats.rb +154 -0
- data/work/sandbox/build/svn.rb +193 -0
- data/work/sandbox/build/test.rb +521 -0
- data/work/sandbox/design.rb +200 -0
- data/work/sandbox/iface_scanner.rb +102 -0
- data/work/sandbox/testunit/assertions/assert_has_keys.rb +38 -0
- data/work/sandbox/testunit/assertions/assert_has_only_keys.rb +38 -0
- data/work/sandbox/testunit/unit.rb +104 -0
- data/work/sandbox/unitspec.rb +54 -0
- data/work/sandbox/x_isotest.rb +532 -0
- metadata +318 -93
- data/METADATA +0 -22
- data/NEWS +0 -8
- data/bin/rubybreak +0 -3
- data/demo/spec/demo_check.rb +0 -21
- data/demo/spec/demo_outline.rb +0 -25
- data/demo/test/demo_run.rb +0 -21
- data/doc/manual.html2 +0 -1416
- data/doc/rdoc/classes/Module.html +0 -165
- data/doc/rdoc/classes/Quarry/Design/Specification/Context.html +0 -174
- data/doc/rdoc/classes/Quarry/Design/Specification.html +0 -265
- data/doc/rdoc/classes/Quarry/Design.html +0 -170
- data/doc/rdoc/classes/Quarry/Mock/Object.html +0 -276
- data/doc/rdoc/files/MANIFEST.html +0 -630
- data/doc/rdoc/files/METADATA.html +0 -92
- data/doc/rdoc/files/NEWS.html +0 -99
- data/doc/rdoc/files/bin/rubybreak.html +0 -96
- data/doc/rdoc/files/bin/xact-ruby.html +0 -92
- data/doc/rdoc/files/lib/quarry/assert/must_rb.html +0 -96
- data/doc/rdoc/files/lib/quarry/assert/should_rb.html +0 -96
- data/doc/rdoc/files/lib/quarry/assertion_rb.html +0 -96
- data/doc/rdoc/files/lib/quarry/breakout_rb.html +0 -144
- data/doc/rdoc/files/lib/quarry/design/spec_rb.html +0 -100
- data/doc/rdoc/files/lib/quarry/document_rb.html +0 -92
- data/doc/rdoc/files/lib/quarry/methodprobe_rb.html +0 -111
- data/doc/rdoc/files/lib/quarry/mock/object_rb.html +0 -123
- data/doc/rdoc/files/lib/quarry/mockery_rb.html +0 -115
- data/doc/ri/Module/doc-i.yaml +0 -16
- data/doc/ri/Quarry/Design/Specification/cdesc-Specification.yaml +0 -44
- data/doc/ri/Quarry/Design/cdesc-Design.yaml +0 -22
- data/doc/ri/Quarry/Mock/Object/cdesc-Object.yaml +0 -52
- data/doc/ri/Quarry/Mock/Object/keys-c.yaml +0 -12
- data/doc/ri/Quarry/Mock/Object/spin-c.yaml +0 -12
- data/doc/ri/Quarry/Mockery-i.yaml +0 -12
- data/lib/quarry/assertion.rb +0 -95
- data/lib/quarry/breakout.rb +0 -45
- data/lib/quarry/design/spec.rb +0 -197
- data/lib/quarry/mock/object.rb +0 -169
- data/lib/quarry/mockery.rb +0 -85
|
@@ -1,165 +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
|
-
<html>
|
|
6
|
-
<head>
|
|
7
|
-
<title>Class: Module</title>
|
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
9
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
|
10
|
-
|
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
|
12
|
-
// <![CDATA[
|
|
13
|
-
|
|
14
|
-
function toggleSource( id )
|
|
15
|
-
{
|
|
16
|
-
var elem
|
|
17
|
-
var link
|
|
18
|
-
|
|
19
|
-
if( document.getElementById )
|
|
20
|
-
{
|
|
21
|
-
elem = document.getElementById( id )
|
|
22
|
-
link = document.getElementById( "l_" + id )
|
|
23
|
-
}
|
|
24
|
-
else if ( document.all )
|
|
25
|
-
{
|
|
26
|
-
elem = eval( "document.all." + id )
|
|
27
|
-
link = eval( "document.all.l_" + id )
|
|
28
|
-
}
|
|
29
|
-
else
|
|
30
|
-
return false;
|
|
31
|
-
|
|
32
|
-
if( elem.style.display == "block" )
|
|
33
|
-
{
|
|
34
|
-
elem.style.display = "none"
|
|
35
|
-
link.innerHTML = "show source"
|
|
36
|
-
}
|
|
37
|
-
else
|
|
38
|
-
{
|
|
39
|
-
elem.style.display = "block"
|
|
40
|
-
link.innerHTML = "hide source"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function openCode( url )
|
|
45
|
-
{
|
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
|
47
|
-
}
|
|
48
|
-
// ]]>
|
|
49
|
-
</script>
|
|
50
|
-
</head>
|
|
51
|
-
|
|
52
|
-
<body>
|
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />Module</td>
|
|
55
|
-
<td align="right">
|
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
|
57
|
-
<tr valign="top">
|
|
58
|
-
<td>In:</td>
|
|
59
|
-
<td>
|
|
60
|
-
<a href="../files/lib/quarry/document_rb.html">lib/quarry/document.rb</a>
|
|
61
|
-
</td>
|
|
62
|
-
</tr>
|
|
63
|
-
<tr>
|
|
64
|
-
<td>Parent:</td>
|
|
65
|
-
<td>
|
|
66
|
-
<a href="Object.html">
|
|
67
|
-
Object
|
|
68
|
-
</a>
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
</table>
|
|
75
|
-
<!-- banner header -->
|
|
76
|
-
|
|
77
|
-
<div id="bodyContent">
|
|
78
|
-
<div id="content">
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<div class="sectiontitle">Methods</div>
|
|
84
|
-
<ul>
|
|
85
|
-
<li><a href="#M000006">doc</a></li>
|
|
86
|
-
<li><a href="#M000007">method_added</a></li>
|
|
87
|
-
</ul>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<div class="sectiontitle">Attributes</div>
|
|
94
|
-
<table border='0' cellpadding='5'>
|
|
95
|
-
<tr valign='top'>
|
|
96
|
-
<td class='attr-rw'>
|
|
97
|
-
[R]
|
|
98
|
-
</td>
|
|
99
|
-
<td class='attr-name'>docs</td>
|
|
100
|
-
<td class='attr-desc'></td>
|
|
101
|
-
</tr>
|
|
102
|
-
</table>
|
|
103
|
-
|
|
104
|
-
<div class="sectiontitle">Public Instance methods</div>
|
|
105
|
-
<div class="method">
|
|
106
|
-
<div class="title">
|
|
107
|
-
<a name="M000006"></a><b>doc</b>(str)
|
|
108
|
-
</div>
|
|
109
|
-
<div class="description">
|
|
110
|
-
<p>
|
|
111
|
-
The idea here is to have dynamic docs.
|
|
112
|
-
</p>
|
|
113
|
-
<pre>
|
|
114
|
-
doc "X does such and such"
|
|
115
|
-
doc "it is very powerful"
|
|
116
|
-
class X
|
|
117
|
-
doc "f does such and such"
|
|
118
|
-
doc "it is where the power lies"
|
|
119
|
-
def f
|
|
120
|
-
...
|
|
121
|
-
end
|
|
122
|
-
end
|
|
123
|
-
</pre>
|
|
124
|
-
<p>
|
|
125
|
-
One of the great things about <a href="Module.html#M000006">doc</a>, is
|
|
126
|
-
that it can be used to "inherit" documentation.
|
|
127
|
-
</p>
|
|
128
|
-
</div>
|
|
129
|
-
<div class="sourcecode">
|
|
130
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000006_source')" id="l_M000006_source">show source</a> ]</p>
|
|
131
|
-
<div id="M000006_source" class="dyn-source">
|
|
132
|
-
<pre>
|
|
133
|
-
<span class="ruby-comment cmt"># File lib/quarry/document.rb, line 23</span>
|
|
134
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">doc</span>(<span class="ruby-identifier">str</span>)
|
|
135
|
-
<span class="ruby-identifier">$_</span><span class="ruby-identifier">doc</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">string</span>
|
|
136
|
-
<span class="ruby-keyword kw">end</span>
|
|
137
|
-
</pre>
|
|
138
|
-
</div>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
<div class="method">
|
|
142
|
-
<div class="title">
|
|
143
|
-
<a name="M000007"></a><b>method_added</b>(meth)
|
|
144
|
-
</div>
|
|
145
|
-
<div class="sourcecode">
|
|
146
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000007_source')" id="l_M000007_source">show source</a> ]</p>
|
|
147
|
-
<div id="M000007_source" class="dyn-source">
|
|
148
|
-
<pre>
|
|
149
|
-
<span class="ruby-comment cmt"># File lib/quarry/document.rb, line 27</span>
|
|
150
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_added</span>(<span class="ruby-identifier">meth</span>)
|
|
151
|
-
<span class="ruby-ivar">@docs</span> <span class="ruby-operator">||=</span> {}
|
|
152
|
-
<span class="ruby-ivar">@docs</span>[<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">meth</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">$_</span><span class="ruby-identifier">doc</span>
|
|
153
|
-
<span class="ruby-identifier">$_</span><span class="ruby-identifier">doc</span>.<span class="ruby-identifier">clear</span>
|
|
154
|
-
<span class="ruby-keyword kw">nil</span>
|
|
155
|
-
<span class="ruby-keyword kw">end</span>
|
|
156
|
-
</pre>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
|
|
162
|
-
</div>
|
|
163
|
-
|
|
164
|
-
</body>
|
|
165
|
-
</html>
|
|
@@ -1,174 +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
|
-
<html>
|
|
6
|
-
<head>
|
|
7
|
-
<title>Class: Quarry::Design::Specification::Context</title>
|
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
9
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
10
|
-
|
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
|
12
|
-
// <![CDATA[
|
|
13
|
-
|
|
14
|
-
function toggleSource( id )
|
|
15
|
-
{
|
|
16
|
-
var elem
|
|
17
|
-
var link
|
|
18
|
-
|
|
19
|
-
if( document.getElementById )
|
|
20
|
-
{
|
|
21
|
-
elem = document.getElementById( id )
|
|
22
|
-
link = document.getElementById( "l_" + id )
|
|
23
|
-
}
|
|
24
|
-
else if ( document.all )
|
|
25
|
-
{
|
|
26
|
-
elem = eval( "document.all." + id )
|
|
27
|
-
link = eval( "document.all.l_" + id )
|
|
28
|
-
}
|
|
29
|
-
else
|
|
30
|
-
return false;
|
|
31
|
-
|
|
32
|
-
if( elem.style.display == "block" )
|
|
33
|
-
{
|
|
34
|
-
elem.style.display = "none"
|
|
35
|
-
link.innerHTML = "show source"
|
|
36
|
-
}
|
|
37
|
-
else
|
|
38
|
-
{
|
|
39
|
-
elem.style.display = "block"
|
|
40
|
-
link.innerHTML = "hide source"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function openCode( url )
|
|
45
|
-
{
|
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
|
47
|
-
}
|
|
48
|
-
// ]]>
|
|
49
|
-
</script>
|
|
50
|
-
</head>
|
|
51
|
-
|
|
52
|
-
<body>
|
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />Quarry::Design::Specification::Context</td>
|
|
55
|
-
<td align="right">
|
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
|
57
|
-
<tr valign="top">
|
|
58
|
-
<td>In:</td>
|
|
59
|
-
<td>
|
|
60
|
-
<a href="../../../../files/lib/quarry/design/spec_rb.html">lib/quarry/design/spec.rb</a>
|
|
61
|
-
</td>
|
|
62
|
-
</tr>
|
|
63
|
-
<tr>
|
|
64
|
-
<td>Parent:</td>
|
|
65
|
-
<td>
|
|
66
|
-
<a href="../../../Object.html">
|
|
67
|
-
Object
|
|
68
|
-
</a>
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
</table>
|
|
75
|
-
<!-- banner header -->
|
|
76
|
-
|
|
77
|
-
<div id="bodyContent">
|
|
78
|
-
<div id="content">
|
|
79
|
-
|
|
80
|
-
<div class="description"><p>
|
|
81
|
-
A context provides a "clean room" to build a specification.
|
|
82
|
-
</p>
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<div class="sectiontitle">Methods</div>
|
|
88
|
-
<ul>
|
|
89
|
-
<li><a href="#M000021">after</a></li>
|
|
90
|
-
<li><a href="#M000020">before</a></li>
|
|
91
|
-
<li><a href="#M000022">method_missing</a></li>
|
|
92
|
-
<li><a href="#M000019">specifications</a></li>
|
|
93
|
-
</ul>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
<div class="sectiontitle">Public Instance methods</div>
|
|
101
|
-
<div class="method">
|
|
102
|
-
<div class="title">
|
|
103
|
-
<a name="M000021"></a><b>after</b>(&after)
|
|
104
|
-
</div>
|
|
105
|
-
<div class="sourcecode">
|
|
106
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000021_source')" id="l_M000021_source">show source</a> ]</p>
|
|
107
|
-
<div id="M000021_source" class="dyn-source">
|
|
108
|
-
<pre>
|
|
109
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 119</span>
|
|
110
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">after</span>)
|
|
111
|
-
<span class="ruby-identifier">after</span> <span class="ruby-value">? </span><span class="ruby-ivar">@after</span> = <span class="ruby-identifier">after</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">after</span>
|
|
112
|
-
<span class="ruby-keyword kw">end</span>
|
|
113
|
-
</pre>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="method">
|
|
118
|
-
<div class="title">
|
|
119
|
-
<a name="M000020"></a><b>before</b>(&before)
|
|
120
|
-
</div>
|
|
121
|
-
<div class="sourcecode">
|
|
122
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000020_source')" id="l_M000020_source">show source</a> ]</p>
|
|
123
|
-
<div id="M000020_source" class="dyn-source">
|
|
124
|
-
<pre>
|
|
125
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 115</span>
|
|
126
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">before</span>)
|
|
127
|
-
<span class="ruby-identifier">before</span> <span class="ruby-value">? </span><span class="ruby-ivar">@before</span> = <span class="ruby-identifier">before</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">before</span>
|
|
128
|
-
<span class="ruby-keyword kw">end</span>
|
|
129
|
-
</pre>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
<div class="method">
|
|
134
|
-
<div class="title">
|
|
135
|
-
<a name="M000022"></a><b>method_missing</b>(relation, *description, &specification)
|
|
136
|
-
</div>
|
|
137
|
-
<div class="sourcecode">
|
|
138
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000022_source')" id="l_M000022_source">show source</a> ]</p>
|
|
139
|
-
<div id="M000022_source" class="dyn-source">
|
|
140
|
-
<pre>
|
|
141
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 123</span>
|
|
142
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">relation</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">description</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">specification</span>)
|
|
143
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">description</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-value">1</span>
|
|
144
|
-
<span class="ruby-keyword kw">super</span>
|
|
145
|
-
<span class="ruby-keyword kw">else</span>
|
|
146
|
-
<span class="ruby-identifier">specifications</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Specification</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">relation</span>, <span class="ruby-identifier">description</span>.<span class="ruby-identifier">first</span>, <span class="ruby-keyword kw">self</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">specification</span>)
|
|
147
|
-
<span class="ruby-keyword kw">end</span>
|
|
148
|
-
<span class="ruby-keyword kw">end</span>
|
|
149
|
-
</pre>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
<div class="method">
|
|
154
|
-
<div class="title">
|
|
155
|
-
<a name="M000019"></a><b>specifications</b>()
|
|
156
|
-
</div>
|
|
157
|
-
<div class="sourcecode">
|
|
158
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000019_source')" id="l_M000019_source">show source</a> ]</p>
|
|
159
|
-
<div id="M000019_source" class="dyn-source">
|
|
160
|
-
<pre>
|
|
161
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 111</span>
|
|
162
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">specifications</span>
|
|
163
|
-
<span class="ruby-ivar">@specifications</span> <span class="ruby-operator">||=</span> []
|
|
164
|
-
<span class="ruby-keyword kw">end</span>
|
|
165
|
-
</pre>
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
</div>
|
|
172
|
-
|
|
173
|
-
</body>
|
|
174
|
-
</html>
|
|
@@ -1,265 +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
|
-
<html>
|
|
6
|
-
<head>
|
|
7
|
-
<title>Class: Quarry::Design::Specification</title>
|
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
9
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
10
|
-
|
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
|
12
|
-
// <![CDATA[
|
|
13
|
-
|
|
14
|
-
function toggleSource( id )
|
|
15
|
-
{
|
|
16
|
-
var elem
|
|
17
|
-
var link
|
|
18
|
-
|
|
19
|
-
if( document.getElementById )
|
|
20
|
-
{
|
|
21
|
-
elem = document.getElementById( id )
|
|
22
|
-
link = document.getElementById( "l_" + id )
|
|
23
|
-
}
|
|
24
|
-
else if ( document.all )
|
|
25
|
-
{
|
|
26
|
-
elem = eval( "document.all." + id )
|
|
27
|
-
link = eval( "document.all.l_" + id )
|
|
28
|
-
}
|
|
29
|
-
else
|
|
30
|
-
return false;
|
|
31
|
-
|
|
32
|
-
if( elem.style.display == "block" )
|
|
33
|
-
{
|
|
34
|
-
elem.style.display = "none"
|
|
35
|
-
link.innerHTML = "show source"
|
|
36
|
-
}
|
|
37
|
-
else
|
|
38
|
-
{
|
|
39
|
-
elem.style.display = "block"
|
|
40
|
-
link.innerHTML = "hide source"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function openCode( url )
|
|
45
|
-
{
|
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
|
47
|
-
}
|
|
48
|
-
// ]]>
|
|
49
|
-
</script>
|
|
50
|
-
</head>
|
|
51
|
-
|
|
52
|
-
<body>
|
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />Quarry::Design::Specification</td>
|
|
55
|
-
<td align="right">
|
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
|
57
|
-
<tr valign="top">
|
|
58
|
-
<td>In:</td>
|
|
59
|
-
<td>
|
|
60
|
-
<a href="../../../files/lib/quarry/design/spec_rb.html">lib/quarry/design/spec.rb</a>
|
|
61
|
-
</td>
|
|
62
|
-
</tr>
|
|
63
|
-
<tr>
|
|
64
|
-
<td>Parent:</td>
|
|
65
|
-
<td>
|
|
66
|
-
<a href="../../Object.html">
|
|
67
|
-
Object
|
|
68
|
-
</a>
|
|
69
|
-
</td>
|
|
70
|
-
</tr>
|
|
71
|
-
</table>
|
|
72
|
-
</td>
|
|
73
|
-
</tr>
|
|
74
|
-
</table>
|
|
75
|
-
<!-- banner header -->
|
|
76
|
-
|
|
77
|
-
<div id="bodyContent">
|
|
78
|
-
<div id="content">
|
|
79
|
-
|
|
80
|
-
<div class="description"><p>
|
|
81
|
-
<a href="../Design.html">Design</a> specification. Sepcification can
|
|
82
|
-
contains sub-specifications.
|
|
83
|
-
</p>
|
|
84
|
-
</div>
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<div class="sectiontitle">Methods</div>
|
|
89
|
-
<ul>
|
|
90
|
-
<li><a href="#M000017">check</a></li>
|
|
91
|
-
<li><a href="#M000016">new</a></li>
|
|
92
|
-
<li><a href="#M000018">outline</a></li>
|
|
93
|
-
</ul>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
<div class="sectiontitle">Classes and Modules</div>
|
|
98
|
-
Class <a href="Specification/Context.html" class="link">Quarry::Design::Specification::Context</a><br />
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<div class="sectiontitle">Attributes</div>
|
|
103
|
-
<table border='0' cellpadding='5'>
|
|
104
|
-
<tr valign='top'>
|
|
105
|
-
<td class='attr-rw'>
|
|
106
|
-
[R]
|
|
107
|
-
</td>
|
|
108
|
-
<td class='attr-name'>after</td>
|
|
109
|
-
<td class='attr-desc'></td>
|
|
110
|
-
</tr>
|
|
111
|
-
<tr valign='top'>
|
|
112
|
-
<td class='attr-rw'>
|
|
113
|
-
[R]
|
|
114
|
-
</td>
|
|
115
|
-
<td class='attr-name'>before</td>
|
|
116
|
-
<td class='attr-desc'></td>
|
|
117
|
-
</tr>
|
|
118
|
-
<tr valign='top'>
|
|
119
|
-
<td class='attr-rw'>
|
|
120
|
-
[R]
|
|
121
|
-
</td>
|
|
122
|
-
<td class='attr-name'>context</td>
|
|
123
|
-
<td class='attr-desc'></td>
|
|
124
|
-
</tr>
|
|
125
|
-
<tr valign='top'>
|
|
126
|
-
<td class='attr-rw'>
|
|
127
|
-
[R]
|
|
128
|
-
</td>
|
|
129
|
-
<td class='attr-name'>description</td>
|
|
130
|
-
<td class='attr-desc'></td>
|
|
131
|
-
</tr>
|
|
132
|
-
<tr valign='top'>
|
|
133
|
-
<td class='attr-rw'>
|
|
134
|
-
[R]
|
|
135
|
-
</td>
|
|
136
|
-
<td class='attr-name'>relation</td>
|
|
137
|
-
<td class='attr-desc'></td>
|
|
138
|
-
</tr>
|
|
139
|
-
<tr valign='top'>
|
|
140
|
-
<td class='attr-rw'>
|
|
141
|
-
[R]
|
|
142
|
-
</td>
|
|
143
|
-
<td class='attr-name'>specification</td>
|
|
144
|
-
<td class='attr-desc'></td>
|
|
145
|
-
</tr>
|
|
146
|
-
</table>
|
|
147
|
-
|
|
148
|
-
<div class="sectiontitle">Public Class methods</div>
|
|
149
|
-
<div class="method">
|
|
150
|
-
<div class="title">
|
|
151
|
-
<a name="M000016"></a><b>new</b>(relation, description, context=nil, &specification)
|
|
152
|
-
</div>
|
|
153
|
-
<div class="description">
|
|
154
|
-
<p>
|
|
155
|
-
New <a href="Specification.html">Specification</a>
|
|
156
|
-
</p>
|
|
157
|
-
</div>
|
|
158
|
-
<div class="sourcecode">
|
|
159
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000016_source')" id="l_M000016_source">show source</a> ]</p>
|
|
160
|
-
<div id="M000016_source" class="dyn-source">
|
|
161
|
-
<pre>
|
|
162
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 44</span>
|
|
163
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">relation</span>, <span class="ruby-identifier">description</span>, <span class="ruby-identifier">context</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">specification</span>)
|
|
164
|
-
<span class="ruby-ivar">@relation</span> = <span class="ruby-identifier">relation</span>
|
|
165
|
-
<span class="ruby-ivar">@description</span> = <span class="ruby-identifier">description</span>
|
|
166
|
-
<span class="ruby-ivar">@specification</span> = <span class="ruby-identifier">specification</span>
|
|
167
|
-
<span class="ruby-ivar">@context</span> = <span class="ruby-identifier">context</span>
|
|
168
|
-
<span class="ruby-ivar">@before</span> = <span class="ruby-identifier">context</span>.<span class="ruby-identifier">before</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>
|
|
169
|
-
<span class="ruby-ivar">@after</span> = <span class="ruby-identifier">context</span>.<span class="ruby-identifier">after</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>
|
|
170
|
-
<span class="ruby-keyword kw">end</span>
|
|
171
|
-
</pre>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
<div class="sectiontitle">Public Instance methods</div>
|
|
176
|
-
<div class="method">
|
|
177
|
-
<div class="title">
|
|
178
|
-
<a name="M000017"></a><b>check</b>(level=0)
|
|
179
|
-
</div>
|
|
180
|
-
<div class="description">
|
|
181
|
-
<p>
|
|
182
|
-
Check <a href="Specification.html">Specification</a>
|
|
183
|
-
</p>
|
|
184
|
-
</div>
|
|
185
|
-
<div class="sourcecode">
|
|
186
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000017_source')" id="l_M000017_source">show source</a> ]</p>
|
|
187
|
-
<div id="M000017_source" class="dyn-source">
|
|
188
|
-
<pre>
|
|
189
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 55</span>
|
|
190
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check</span>(<span class="ruby-identifier">level</span>=<span class="ruby-value">0</span>)
|
|
191
|
-
<span class="ruby-identifier">padding</span> = <span class="ruby-value str">" "</span> <span class="ruby-operator">*</span> <span class="ruby-value">2</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">level</span>
|
|
192
|
-
|
|
193
|
-
<span class="ruby-identifier">clause</span> = <span class="ruby-node">"#{relation} #{description}"</span>.<span class="ruby-identifier">strip</span>
|
|
194
|
-
|
|
195
|
-
<span class="ruby-identifier">new_context</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>
|
|
196
|
-
<span class="ruby-identifier">new_context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">before</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">before</span>
|
|
197
|
-
<span class="ruby-keyword kw">begin</span>
|
|
198
|
-
<span class="ruby-identifier">new_context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">specification</span>)
|
|
199
|
-
<span class="ruby-identifier">puts</span> (<span class="ruby-value str">"="</span> <span class="ruby-operator">*</span> (<span class="ruby-identifier">level</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)) <span class="ruby-operator">+</span> <span class="ruby-value str">" "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">clause</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\b\w/</span>){<span class="ruby-identifier">$&</span>.<span class="ruby-identifier">upcase</span>}
|
|
200
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Assertion</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
|
201
|
-
<span class="ruby-comment cmt">#puts padding + " (FAIL) [#{e.backtrace[2]}] " + clause</span>
|
|
202
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"* "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">clause</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'_'</span>,<span class="ruby-value str">' '</span>) <span class="ruby-operator">+</span> <span class="ruby-node">" [#{e.backtrace[2]}]"</span>
|
|
203
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$VERBOSE</span>
|
|
204
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
|
205
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
|
|
206
|
-
<span class="ruby-identifier">print</span> <span class="ruby-identifier">padding</span>
|
|
207
|
-
<span class="ruby-comment cmt">#puts padding + " (ERROR) [#{e.backtrace[2]}] " + clause</span>
|
|
208
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">padding</span> <span class="ruby-operator">+</span> <span class="ruby-node">" (ERROR) #{e}"</span>
|
|
209
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">backtrace</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$VERBOSE</span>
|
|
210
|
-
<span class="ruby-keyword kw">ensure</span>
|
|
211
|
-
<span class="ruby-identifier">new_context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">after</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">after</span>
|
|
212
|
-
<span class="ruby-keyword kw">end</span>
|
|
213
|
-
|
|
214
|
-
<span class="ruby-identifier">new_context</span>.<span class="ruby-identifier">specifications</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
|
215
|
-
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">check</span>(<span class="ruby-identifier">level</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)
|
|
216
|
-
<span class="ruby-keyword kw">end</span>
|
|
217
|
-
<span class="ruby-keyword kw">end</span>
|
|
218
|
-
</pre>
|
|
219
|
-
</div>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
<div class="method">
|
|
223
|
-
<div class="title">
|
|
224
|
-
<a name="M000018"></a><b>outline</b>(level=0)
|
|
225
|
-
</div>
|
|
226
|
-
<div class="description">
|
|
227
|
-
<p>
|
|
228
|
-
Outline <a href="Specification.html">Specification</a>
|
|
229
|
-
</p>
|
|
230
|
-
</div>
|
|
231
|
-
<div class="sourcecode">
|
|
232
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000018_source')" id="l_M000018_source">show source</a> ]</p>
|
|
233
|
-
<div id="M000018_source" class="dyn-source">
|
|
234
|
-
<pre>
|
|
235
|
-
<span class="ruby-comment cmt"># File lib/quarry/design/spec.rb, line 86</span>
|
|
236
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">outline</span>(<span class="ruby-identifier">level</span>=<span class="ruby-value">0</span>)
|
|
237
|
-
<span class="ruby-identifier">padding</span> = (<span class="ruby-value str">" "</span> <span class="ruby-operator">*</span> <span class="ruby-value">2</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">level</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">"- "</span>
|
|
238
|
-
<span class="ruby-identifier">context</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>
|
|
239
|
-
<span class="ruby-keyword kw">begin</span>
|
|
240
|
-
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">specification</span>)
|
|
241
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Assertion</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
|
242
|
-
<span class="ruby-comment cmt">#rescue Exception => e</span>
|
|
243
|
-
<span class="ruby-keyword kw">end</span>
|
|
244
|
-
|
|
245
|
-
<span class="ruby-identifier">str</span> = <span class="ruby-value str">''</span>
|
|
246
|
-
<span class="ruby-identifier">str</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{relation} "</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">relation</span>
|
|
247
|
-
<span class="ruby-identifier">str</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{description}"</span>
|
|
248
|
-
<span class="ruby-comment cmt">#str = str.strip #.gsub(/\b\w/){$&.upcase}</span>
|
|
249
|
-
|
|
250
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">padding</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">str</span>.<span class="ruby-identifier">strip</span>
|
|
251
|
-
|
|
252
|
-
<span class="ruby-identifier">context</span>.<span class="ruby-identifier">specifications</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
|
253
|
-
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">outline</span>(<span class="ruby-identifier">level</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>)
|
|
254
|
-
<span class="ruby-keyword kw">end</span>
|
|
255
|
-
<span class="ruby-keyword kw">end</span>
|
|
256
|
-
</pre>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
|
|
262
|
-
</div>
|
|
263
|
-
|
|
264
|
-
</body>
|
|
265
|
-
</html>
|