Ruby programming tutorial

Download free Ruby tutorial course in PDF, training file in 69 chapters and 235 pages. Free unaffiliated ebook created from Stack OverFlow contributor.

Table of contents

  • About
  • Getting started with Ruby Language
  • Hello World
  • Hello World as a Self-Executable File—using Shebang (Unix-like operating systems only)
  • Hello World from IRB
  • Hello World without source ?les
  • Hello World with tk
  • My First Method
  • Casting (type conversion)
  • Casting to a Float
  • Casting to a String
  • Casting to an Integer
  • Floats and Integers
  • Operators
  • Operator Precedence and Methods
  • Case equality operator (===)
  • Safe Navigation Operator
  • Assignment Operators
  • Comparison Operators
  • Variable Scope and Visibility
  • Class Variables
  • Local Variables
  • Global Variables
  • Instance Variables
  • Environment Variables
  • Sample to get user pro?le path
  • Constants
  • De?ne a constant
  • Modify a Constant
  • Constants cannot be de?ned in methods
  • De?ne and change constants in a class
  • Special Constants in Ruby
  • __FILE__
  • __dir__
  • $PROGRAM_NAME or $0
  • $$
  • $1, $2, etc
  • ARGV or $*
  • STDIN
  • STDOUT
  • STDERR
  • $stderr
  • $stdout
  • $stdin
  • ENV
  • Casting (type conversion)
  • Variable Scope and Visibility
  • Constants
  • Comments
  • Multidimensional Arrays
  • DateTime
  • Numbers
  • Comparable
  • Methods
  • Blocks and Procs and Lambdas
  • Exceptions
  • Enumerable in Ruby
  • Inheritance
  • Regular Expressions and Regex Based Operations
  • Ruby Access Modifiers
  • Loading Source Files
  • Range
  • Introspection in Ruby
  • Recursion in Ruby
  • JSON with Ruby
  • Gem Creation/Management
  • Gem Usage
  • Queue
  • Struct
  • Dynamic Evaluation
  • Message Passing
  • Truthiness
  • Introspection
  • Catching Exceptions with Begin / Rescue
  • IRB
  • Generate a random number
  • Getting started with Hanami
  • OptionParser
  • Operating System or Shell commands
  • C Extensions
  • Debugging
  • Ruby Version Manager
  • Installation

It is a free Ruby ebook created for beginners. The content is extracted from Stack Overflow pltaform, which is written by many Ruby developers and contributors.

The content is released under Creative Commons BY-SA

Size1.87 MB
File typepdf
Downloads825
Created2019-04-30
Cover of Ruby programming tutorial
Preview PDF

Download

  • An Introduction to Programming in Go

    Learning Go language, free PDF tutorial in 168 pages. Go is an ideal language to learn as your first programming language....

  • Get Started with MicroPython on Raspberry Pi Pico

    Download free course Get Started with MicroPython on Raspberry Pi Pico, pdf file on 139 pages by Gareth Halfacree, Ben Everard....

  • React JS tutorial

    Download free React JS tutorial course in PDF, training file in 31 chapters and 110 pages. Free unaffiliated ebook created from Stack OverFlow contributor....

  • Elementary Algorithms

    This is a free book about elementary algorithms and data structures. This book doesn't only focus on an imperative (or procedural) approach, but also includes purely functional algorithms and data structures. It doesn't require readers to master any programming languages, because all the algorit...

  • Graph Algorithms

    Download free course Graph Algorithms, pdf file on 257 pages by Mark Needham, Amy Hodler....

  • Raspberry Pi Camera Guide

    Download free course Raspberry Pi Camera Guide, pdf file on 132 pages by Dan Aldred, Wesley Archer, Jody Carter, PJ Evans, Richard Hayler, James Singleton, Rob Zwetsloot....

  • Designing Scalable JavaScript Applications

    Download free course Designing Scalable JavaScript Applications, pdf file on 134 pages by Emmit Scott....

  • Android video game tutorial

    With this tutorial you will learn how to create an android video game and the basics of android applications development, free training document on 34 pages by Nikhil Yadav....

  • R Language tutorial, The Basic Maniuplation

    The purpose of this course is to provide a starting point for Interested in R language. It is useful For the beginner to assimilate certain notions and concepts in order to improve their knowledge....

  • C# programming tutorial for professionals

    Download free C# tutorial course in PDF, training file in 164 chapters and 808 pages. Free unaffiliated ebook created from Stack OverFlow contributor....