#ruby
Read more stories on Hashnode
Articles with this tag
With Ruby Examples ยท Mocks and stubs are both used in testing to replace real objects. The main differences between mocks and stubs are: Mocks: Are used...
Description: Delve into the world of object-oriented design, understanding its principles, patterns, and challenges while emphasizing the importance...
Description: Discover how to create sustainable and adaptable code by effectively managing dependencies through abstraction, isolation, controlling...
Description: Dive into the concept of single responsibility in object-oriented programming from Chapter 2 of Book Practical Object-Oriented Design: An...
Introduction In the world of software development, change is the only constant. As software applications evolve, developers face the challenge of...
If you want to rename files in a folder with Ruby use this script: require 'fileutils' dir = "/path/to/directory" Dir.foreach(dir) do |file| next...