lib/substation/utils.rb in substation-0.0.9 vs lib/substation/utils.rb in substation-0.0.10.beta2

- old
+ new

@@ -1,7 +1,5 @@ -# encoding: utf-8 - module Substation # A collection of utility methods module Utils @@ -12,10 +10,10 @@ # # @return [Class, nil] # # @api private def self.const_get(name) - list = name.to_s.split('::') + list = name.to_s.split("::") list.shift if list.first.empty? obj = Object list.each do |const| # This is required because const_get tries to look for constants in the # ancestor chain, but we only want constants that are HERE