logo rip
RIP Tutorial
  • Tags
  • Topics
  • Examples
  • eBooks
Download Ruby Language (PDF)

Ruby Language

  • Getting started with Ruby Language
  • Awesome Book
  • Awesome Community
  • Awesome Course
  • Awesome Tutorial
  • Awesome YouTube
  • Arrays
  • Blocks and Procs and Lambdas
  • C Extensions
  • Casting (type conversion)
  • Catching Exceptions with Begin / Rescue
  • Classes
  • Command Line Apps
  • Comments
  • Comparable
  • Constants
  • Control Flow
    • begin, end
    • Case statement
    • Control flow with logic statements
    • Flip-Flop operator
    • if, elsif, else and end
    • Inline if/unless
    • Loop control with break, next, and redo
    • Or-Equals/Conditional assignment operator (||=)
    • return vs. next: non-local return in a block
    • Ternary operator
    • throw, catch
    • Truthy and Falsy values
    • unless
    • while, until
  • DateTime
  • Debugging
  • Design Patterns and Idioms in Ruby
  • Destructuring
  • Dynamic Evaluation
  • Enumerable in Ruby
  • Enumerators
  • Environment Variables
  • ERB
  • Exceptions
  • File and I/O Operations
  • Gem Creation/Management
  • Gem Usage
  • Generate a random number
  • Getting started with Hanami
  • Hashes
  • Implicit Receivers and Understanding Self
  • Inheritance
  • Installation
  • instance_eval
  • Introspection
  • Introspection in Ruby
  • IRB
  • Iteration
  • JSON with Ruby
  • Keyword Arguments
  • Loading Source Files
  • Message Passing
  • Metaprogramming
  • method_missing
  • Methods
  • Modules
  • Monkey Patching in Ruby
  • Monkey Patching in Ruby
  • Monkey Patching in Ruby
  • Multidimensional Arrays
  • Numbers
  • Operating System or Shell commands
  • Operators
  • Operators
  • OptionParser
  • Pure RSpec JSON API testing
  • Queue
  • Range
  • rbenv
  • Recursion in Ruby
  • Refinements
  • Regular Expressions and Regex Based Operations
  • Ruby Access Modifiers
  • Ruby Version Manager
  • Singleton Class
  • Special Constants in Ruby
  • Splat operator (*)
  • Strings
  • Struct
  • Symbols
  • Thread
  • Time
  • Truthiness
  • Variable Scope and Visibility


Ruby Language

  • Getting started with Ruby Language
  • Awesome Book
  • Awesome Community
  • Awesome Course
  • Awesome Tutorial
  • Awesome YouTube
  • Arrays
  • Blocks and Procs and Lambdas
  • C Extensions
  • Casting (type conversion)
  • Catching Exceptions with Begin / Rescue
  • Classes
  • Command Line Apps
  • Comments
  • Comparable
  • Constants
  • Control Flow
    • begin, end
    • Case statement
    • Control flow with logic statements
    • Flip-Flop operator
    • if, elsif, else and end
    • Inline if/unless
    • Loop control with break, next, and redo
    • Or-Equals/Conditional assignment operator (||=)
    • return vs. next: non-local return in a block
    • Ternary operator
    • throw, catch
    • Truthy and Falsy values
    • unless
    • while, until
  • DateTime
  • Debugging
  • Design Patterns and Idioms in Ruby
  • Destructuring
  • Dynamic Evaluation
  • Enumerable in Ruby
  • Enumerators
  • Environment Variables
  • ERB
  • Exceptions
  • File and I/O Operations
  • Gem Creation/Management
  • Gem Usage
  • Generate a random number
  • Getting started with Hanami
  • Hashes
  • Implicit Receivers and Understanding Self
  • Inheritance
  • Installation
  • instance_eval
  • Introspection
  • Introspection in Ruby
  • IRB
  • Iteration
  • JSON with Ruby
  • Keyword Arguments
  • Loading Source Files
  • Message Passing
  • Metaprogramming
  • method_missing
  • Methods
  • Modules
  • Monkey Patching in Ruby
  • Monkey Patching in Ruby
  • Monkey Patching in Ruby
  • Multidimensional Arrays
  • Numbers
  • Operating System or Shell commands
  • Operators
  • Operators
  • OptionParser
  • Pure RSpec JSON API testing
  • Queue
  • Range
  • rbenv
  • Recursion in Ruby
  • Refinements
  • Regular Expressions and Regex Based Operations
  • Ruby Access Modifiers
  • Ruby Version Manager
  • Singleton Class
  • Special Constants in Ruby
  • Splat operator (*)
  • Strings
  • Struct
  • Symbols
  • Thread
  • Time
  • Truthiness
  • Variable Scope and Visibility

Ruby LanguageControl Flow


Control Flow Related Examples

  • begin, end
  • Case statement
  • Control flow with logic statements
  • Flip-Flop operator
  • if, elsif, else and end
  • Inline if/unless
  • Loop control with break, next, and redo
  • Or-Equals/Conditional assignment operator (||=)
  • return vs. next: non-local return in a block
  • Ternary operator
  • throw, catch
  • Truthy and Falsy values
  • unless
  • while, until
PDF - Download Ruby Language for free


Previous Next
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0
This website is not affiliated with Stack Overflow