Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Java
10.2k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby Hash-class
56 posts
Popular Articles
Recent Articles
Ruby | Hash merge! function
Last Updated: 07 January 2020
Hash#merge!() : merge!() is a Hash class method which can add the content the given hash array to the other. Entries with duplicate keys are
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash reject method
Last Updated: 07 January 2020
Hash#reject() is a Hash class method which returns a new hash which consists of entries for which the block returns false.Syntax: Hash.rejec
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash has_key?() function
Last Updated: 07 January 2020
Hash#has_key?() is a Hash class method which checks whether the given key is present in hash.Syntax: Hash.has_key?()Parameter: Hash valuesRe
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Java
10.2k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby | Hash key() function
Last Updated: 07 January 2020
Hash#key() is a Hash class method which gives the key value corresponding to the value. If value doesn't exist then return nil.Syntax: Hash.
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash include?() function
Last Updated: 07 January 2020
Hash#include?() is a Hash class method which checks whether the given key is present in hash.Syntax: Hash.include?()Parameter: Hash valuesRe
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash dig() function
Last Updated: 07 January 2020
Hash#dig() is a Hash class method which finds the nested value which is specified by the sequence of the key object by calling dig at each s
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash each() function
Last Updated: 07 January 2020
Hash#each() is a Hash class method which finds the nested value which calls block once for each key in hash by passing the key-value pair as
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash each_pair() function
Last Updated: 07 January 2020
Hash#each_pair() is a Hash class method which finds the nested value which calls block once for each pair in hash by passing the key_value p
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash empty? function
Last Updated: 15 April 2021
Hash#empty?() is a Hash class method which checks whether the Hash array has any key-value pair.Syntax: Hash.empty?()Parameter: Hash valuesR
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash flatten() function
Last Updated: 07 January 2020
Hash#flatten() is a Hash class method which returns the one-dimensional flattening hash array.Syntax: Hash.flatten()Parameter: Hash valuesRe
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash size() method
Last Updated: 07 January 2020
Hash#size() is a Hash class method which returns the count of key-value pair in the hash.Syntax: Hash.size()Parameter: Hash valuesReturn: co
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash select() method
Last Updated: 07 January 2020
Hash#select() : select() is a Hash class method which finds the array from the hash based on the block condition. Syntax: Hash.select()Param
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash replace() method
Last Updated: 07 January 2020
Hash#replace() : replace() is a Hash class method which replaces the content of one hash with other.Syntax: Hash.replace()Parameter: Hash va
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash compact!() function
Last Updated: 07 January 2020
compact! () is a Hash class method which returns the Hash after removing all the 'nil' value elements (if any) from the Hash. If there are n
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash delete() function
Last Updated: 07 January 2020
delete() is an Hash class method which deletes the key-value pair and returns the value from hash whose key is equal to key.Syntax: Hash.del
...read more
Ruby
Ruby-Methods
Ruby Hash-class
1
2
3
4
>>
Last
1
2
3
4
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !