Ruby | Control Flow AlterationPrerequisite : Decision Making , Loops Ruby programming language provides some statements in addition to loops, conditionals, and iterators, which are used to change the flow of control in a program. In other words, these statements are a piece of code that executes one after another until the condi
7 min read
File Handling in RubyIt is a way of processing a file such as creating a new file, reading content in a file, writing content to a file, appending content to a file, renaming the file and deleting the file. Common modes for File Handling "r" : Read-only mode for a file. "r+" : Read-Write mode for a file. "w" : Write-onl
4 min read