Parcourir la source

do not use interpolation

Chris Mague il y a 7 ans
Parent
commit
292abb8e77
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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