module HashExtension

Public Instance Methods

to_keysym_hash() click to toggle source
# File lib/dir_friend/core_ext.rb, line 2
def to_keysym_hash
  self.inject({}) do |h, (k, v)|
    h[k.intern] = begin
      case v
      when Hash then v.to_keysym_hash
      else v
      end
    end
    h
  end
end