Explorar el Código

do not use interpolation

Chris Mague hace 7 años
padre
commit
292abb8e77
Se han modificado 1 ficheros con 1 adiciones y 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