Method: Attributor::Type::ClassMethods#compile_dsl
- Defined in:
- lib/attributor/type.rb
#compile_dsl(options, block) ⇒ Object
By default, non complex types will not have a DSL subdefinition this handles such case
152 153 154 155 156 157 |
# File 'lib/attributor/type.rb', line 152 def compile_dsl(, block) raise AttributorException, 'Basic structures cannot take extra block definitions' if block # Simply create a DSL compiler to store the options, and not to parse any DSL sub_definition = dsl_compiler.new() sub_definition end |