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