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 rehash function
Last Updated: 07 January 2020
Hash#rehash() : rehash() is a Hash class method which based on the current hash value rebuilds the hash for each key. This will reindex hash
...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 checks whether any changes are made in the hash array or notSyntax: Hash.reject!()Parameter: Has
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash key?() function
Last Updated: 07 January 2020
Hash#key?() is a Hash class method which checks whether the key corresponding to the value is present or not.Syntax: Hash.key?()Parameter: H
...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 keep_if() function
Last Updated: 07 January 2020
Hash#keep_if() is a Hash class method which only keeps those key value pair that follows the block condition.Syntax: Hash.keep_if()Parameter
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash to_s() function
Last Updated: 07 January 2020
Hash#to_s() is a Hash class method which gives the string representation of hash.Syntax: Hash.to_s()Parameter: Hash valuesReturn: string rep
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash fetch_values() function
Last Updated: 07 January 2020
Hash#fetch_values() is a Hash class method which returns array containing the values associated with the given keys. With no other arguments
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash to_a method
Last Updated: 07 January 2020
Hash#to_a() is a Hash class method which gives a nested array of the key-value pair.Syntax: Hash.to_a()Parameter: Hash valuesReturn: array r
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash shift() method
Last Updated: 07 January 2020
Hash#shift() is a Hash class method which removes a key-value pair from hash and then it returns these value as two-item array. Syntax: Hash
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash value? method
Last Updated: 02 December 2021
Hash#value?() is a Hash class method which checks whether the argumented 'value' is present in the array or not.Syntax: Hash.value?()Paramet
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash to_proc method
Last Updated: 07 January 2020
Hash#to_proc() : to_proc() is a Hash class method which returns a Proc which maps 'keys' value to 'value' value.Syntax: Hash.to_proc()Parame
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash select!() method
Last Updated: 07 January 2020
Hash#select!() is a Hash class method which checks whether the array from the hash ius present based on the block condition. Syntax: Hash.se
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash assoc() function
Last Updated: 07 January 2020
assoc() is an Hash class method which searches an element through the Hash.Syntax: Hash.assoc()Parameter: Hashs for finding elements. Return
...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. Syntax: Hash.co
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash compare_by_identity? () function
Last Updated: 07 January 2020
compare_by_identity? () is a Hash class method which checks the comparison of the hash key with its identity and considers exact same objec
...read more
Ruby
Ruby-Methods
Ruby Hash-class
Ruby | Hash rassoc() function
Last Updated: 07 January 2020
rassoc() is an Hash class method which searches an element through the Hash value.Syntax: Hash.rassoc()Parameter: Hashs for finding elements
...read more
Ruby
Ruby-Methods
Ruby Hash-class
First
1
2
3
4
>>
Last
First
1
2
3
4
>>
Last
First
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 !