Ruby | Hash < method
Hash#<() is a Hash class method which compares two Hash values. Syntax: Hash.<() Parameter: Hash values Return: true - if a < b otherwise return false Example #1 : # Ruby code for Hash.<() method # declaring Hash value a = {a:100, b:200} # declaring Hash value b = {a:100, c:300, b:200} #