Class: Rdm::ValidateConfig
- Inherits:
-
Object
- Object
- Rdm::ValidateConfig
- Defined in:
- lib/rdm/yml_config/validate_config.rb
Instance Method Summary collapse
-
#initialize ⇒ ValidateConfig
constructor
A new instance of ValidateConfig.
- #method_missing(method, *args, &block) ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ ValidateConfig
Returns a new instance of ValidateConfig.
2 3 4 |
# File 'lib/rdm/yml_config/validate_config.rb', line 2 def initialize @data = {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
6 7 8 |
# File 'lib/rdm/yml_config/validate_config.rb', line 6 def method_missing(method, *args, &block) @data[method] = args.first end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 |
# File 'lib/rdm/yml_config/validate_config.rb', line 10 def to_hash @data end |