Sha256: b5bd113a69679d71abf6286fa9b1d5300c2af80d2d87613d576b4b4c671fcbba

Contents?: true

Size: 104 Bytes

Versions: 3

Compression:

Stored size: 104 Bytes

Contents

Hash.class_eval do
  def get_key(value)
    self.select { |k, v| v == value }.keys.first.to_s
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ro_commands-0.0.3 lib/ro_commands/core_ext/hash.rb
ro_commands-0.0.2 lib/ro_commands/core_ext/hash.rb
ro_commands-0.0.1 lib/ro_commands/core_ext/hash.rb