Module: DslFactory
- Defined in:
- lib/dsl_factory.rb,
lib/dsl_factory/version.rb
Defined Under Namespace
Classes: DefinitionError, Generator, ValidationError
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.define_dsl(inspectable: false, &block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/dsl_factory.rb', line 10 def define_dsl(inspectable: false, &block) generator = DslFactory::Generator.new generator.define_inspect if inspectable generator.instance_eval(&block) return generator.definition end |