class Hash
Public Instance Methods
ends_with?(string)
click to toggle source
# File lib/gumdrop/util/core_ex.rb, line 15 def ends_with?(string) self[0..(string.length)] == string end
starts_with?(string)
click to toggle source
# File lib/gumdrop/util/core_ex.rb, line 19 def starts_with?(string) self[0..(string.length)] == string end
to_hash_object()
click to toggle source
# File lib/gumdrop/util/core_ex.rb, line 11 def to_hash_object Gumdrop::Util::HashObject.from self, true end
to_symbolized_hash()
click to toggle source
# File lib/gumdrop/util/core_ex.rb, line 5 def to_symbolized_hash new_hash= {} self.each {|k,v| new_hash[k.to_sym]= v } new_hash end