Explorar o código

do not use interpolation

Chris Mague %!s(int64=7) %!d(string=hai) anos
pai
achega
292abb8e77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/neoinfra/config.rb

+ 1 - 1
lib/neoinfra/config.rb

@@ -15,7 +15,7 @@ module NeoInfra
       )
 
       @config.keys.each do |c|
-        define_singleton_method(:"#{c}") do
+        define_singleton_method(c.to_sym) do
           @config[c]
         end
       end