Module: Proof
- Defined in:
- lib/proof/error.rb,
lib/proof/proof.rb,
lib/proof/suite.rb,
lib/proof/extend.rb,
lib/proof/output.rb,
lib/proof/result.rb,
lib/proof/summary.rb,
lib/proof/execution.rb,
lib/proof/namespace.rb,
lib/proof/description.rb,
lib/proof/core_ext/object.rb
Defined Under Namespace
Modules: CoreExt, Namespace
Classes: Description, Error, Execution, Extend, Output, Result, Suite, Summary
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
30
31
32
|
# File 'lib/proof/proof.rb', line 30
def ()
Proof::Output.note
end
|
#desc(description) ⇒ Object
#heading(heading) ⇒ Object
18
19
20
21
|
# File 'lib/proof/proof.rb', line 18
def heading(heading)
Proof::Output.h2 heading
yield if block_given?
end
|
#proof(description = nil, &block) ⇒ Object
#section(heading = '') ⇒ Object
Also known as:
block
23
24
25
26
27
|
# File 'lib/proof/proof.rb', line 23
def section(heading='')
meth = heading.empty? ? :sect : :heading
Proof::Output.send meth, heading
yield if block_given?
end
|
#title(title) ⇒ Object
14
15
16
|
# File 'lib/proof/proof.rb', line 14
def title(title)
Proof::Output.h1 title
end
|