Module: Lite::Validation::Validator::Option::Some::Complex::Registry
- Defined in:
- lib/lite/validation/validator/option/some/complex/registry.rb,
lib/lite/validation/validator/option/some/complex/registry/node.rb,
lib/lite/validation/validator/option/some/complex/registry/root.rb,
lib/lite/validation/validator/option/some/complex/registry/abstract.rb
Defined Under Namespace
Classes: Abstract
Class Method Summary collapse
Class Method Details
.register(key, wrapper) ⇒ Object
13 14 15 |
# File 'lib/lite/validation/validator/option/some/complex/registry.rb', line 13 def self.register(key, wrapper) @root = root.insert(key, wrapper) end |
.root ⇒ Object
17 18 19 |
# File 'lib/lite/validation/validator/option/some/complex/registry.rb', line 17 def self.root @root ||= Root.instance end |
.wrapper_for(key) ⇒ Object
21 22 23 |
# File 'lib/lite/validation/validator/option/some/complex/registry.rb', line 21 def self.wrapper_for(key) root.wrapper_for(key) end |