Module: Kernel
- Defined in:
- lib/kernel.rb
Overview
The Kernel module.
Instance Method Summary collapse
-
#Fix(name = nil, &block) ⇒ #test
Specifications are built with this method.
Instance Method Details
#Fix(name = nil, &block) ⇒ #test
Specifications are built with this method.
28 29 30 31 32 33 34 |
# File 'lib/kernel.rb', line 28 def Fix(name = nil, &block) klass = ::Class.new(::Fix::Dsl) klass.const_set(:CONTEXTS, [klass]) klass.instance_eval(&block) ::Fix::Doc.const_set(name, klass) unless name.nil? ::Fix::Set.new(*klass.const_get(:CONTEXTS)) end |