Module: NestedStruct
- Defined in:
- lib/nested_struct.rb,
lib/nested_struct/empty.rb,
lib/nested_struct/field.rb,
lib/nested_struct/coercer.rb,
lib/nested_struct/version.rb,
lib/nested_struct/interface.rb,
lib/nested_struct/configuration.rb,
lib/nested_struct/errors/invalid_coercer_value.rb,
lib/nested_struct/errors/invalid_coercer_target.rb,
lib/nested_struct/errors/invalid_coercer_expression.rb
Defined Under Namespace
Modules: Errors, Interface
Classes: Coercer, Configuration, Empty, Field
Constant Summary
collapse
- EMPTY =
self::Empty.instance
- VERSION =
'1.0.3'
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
19
20
21
|
# File 'lib/nested_struct.rb', line 19
def configuration
@configuration ||= Configuration.new
end
|
23
24
25
26
|
# File 'lib/nested_struct.rb', line 23
def configure
yield(configuration) if block_given?
configuration
end
|