Module: Lax
- Defined in:
- lib/lax.rb,
lib/lax/cb.rb,
lib/lax/tree.rb,
lib/lax/runner.rb,
lib/lax/version.rb,
lib/lax/rake_task.rb
Defined Under Namespace
Classes: CB, RakeTask, Runner, Tree
Constant Summary
collapse
- VERSION =
'0.0.1'
- @@cases =
[]
Class Method Summary
collapse
Class Method Details
.go(runner_opts = {}) ⇒ Object
14
15
16
|
# File 'lib/lax.rb', line 14
def go(runner_opts={})
Runner.new(@@cases.shift(@@cases.size), runner_opts).go
end
|
.test(c = {}) {|group = Tree.new(Hash===c ? c : {obj: c})| ... } ⇒ Object
9
10
11
12
|
# File 'lib/lax.rb', line 9
def test(c={})
yield(group = Tree.new(Hash===c ? c : {obj: c}))
@@cases += group.cases
end
|