Introduction

To

Ruby

 

Content

  • History
  • What is Ruby?
  • RVM, Ruby gems
  • Syntax
  • IRB
  • Primitive Data Types
  • Date & Time

History

  • Syntactically Simple
  • Truly Object-Oriented
  • Having Iterators and Closures
  • Exception Handling
  • Automatic Memory Management
  • Portable

Ruby was born in 1993, conceieved in a discussion between Yukihiro Matsumoto (“Matz”) and a colleague. Matz wanted a language perfect for his needs:

What is Ruby?

  • General-purpose programming language
  • Dynamic 
  • Reflective 
  • Everything is an object
  • Expressive
  • Supports parametric polymorphism
  • Multi paradigm programming language

Ruby - Multi Paradigm

  • Allows procedural programming (defining functions/variables outside classes makes them part of the root, 'self' Object)
  • Object orientation (everything is an object) -
  • Functional programming (it has anonymous functions, closures, and continuations; statements all have values, and functions return the last evaluation)

RVM & Gems

  • What is RVM?
  • Ruby Gems

Syntax and Conventions

  • Case sensitive
  • file name conventions
  • methods
  • variables
  • constants
  • classes

IRB

(Interactive Ruby)

It's a REPL(read–eval–print loop)

Primitive Data Types

  • Strings
  • Numbers (Rational, Complex)
  • Boolean
  • Nil
  • Symbols
  • Hash
  • Array

 

Questions?

Thank You

References

  • https://www.ruby-lang.org/en/
  • https://en.wikipedia.org/wiki/Ruby_(programming_language)
  • Bullet Three

Contact

  • Skype id: dattdongare
  • Mail id: datt@cart91.com
  • Mobile: 7030122113

Introduction to Ruby

By Datt Dongare

Introduction to Ruby

Slide contains: About ruby. Paradigm and Inspiration, History, Syntax and Conventions, IRB, RVM, String, Date

  • 643