Class: EnvironmentConfig::Types::Yaml
- Inherits:
-
Object
- Object
- EnvironmentConfig::Types::Yaml
- Defined in:
- lib/environment_config/types/yaml.rb
Class Method Summary collapse
Class Method Details
.convert(value) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/environment_config/types/yaml.rb', line 13 def convert(value) return value if value.is_a?(Array) || value.is_a?(Hash) return nil if value.empty? YAML.safe_load(value) end |
.name ⇒ Object
9 10 11 |
# File 'lib/environment_config/types/yaml.rb', line 9 def name :yaml end |