Method: ElasticAPM::Config::Options::InstanceMethods#method_missing
- Defined in:
- lib/elastic_apm/config/options.rb
#method_missing(name, *value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/elastic_apm/config/options.rb', line 117 def method_missing(name, *value) name_str = name.to_s if name_str.end_with?('=') key = name_str[0...-1].to_sym set(key, value.first) elsif name_str.end_with?('?') key = name_str[0...-1].to_sym .key?(key) ? [key].value : super elsif .key?(name) .fetch(name).value else super end end |