Class: Rdm::ValidateConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/rdm/yml_config/validate_config.rb

Instance Method Summary collapse

Constructor Details

#initializeValidateConfig

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_hashObject



10
11
12
# File 'lib/rdm/yml_config/validate_config.rb', line 10

def to_hash
  @data
end