Roshan Book

My Tech Notebook

Monthly Archives: August 2011

Ruby Helpful Resources

Name Url Category
Ruby main website source
Ruby api .classes and methods core class api documentation
Ruby standard library documentation Standard library
Learn ruby hard way Tutorial
Ruby programming theory Tutorial
Ruby mailing list Mailing List
Ruby forum Forum

Ruby Introduction

  1. Why Ruby
    1. Ruby is a general purpose language, can be used to write code once and run on various platforms. You just need a ruby interpreter for this.
    2. It is an interpreted language
    3. It has many avatars, viz Jruby, Iron-Ruby
  2. Power of ruby
    1. Below are the examples taken from
    2. Many people use Ruby in their daily jobs. Others just as a hobby. Here you’ll find a small sample of real world usage of Ruby.

      • A research group in Motorola uses Ruby to script a simulator, both to generate scenarios and to post process the data.
      3D Modeling
      • Google SketchUp is a 3D modeling application that uses Ruby for its macro scripting API.
      • Toronto Rehab uses a RubyWebDialogs based app to manage and track on-call and on-site support for the IT help desk and IT operations teams.
      • At MORPHA project, Ruby was used to implemented the reactive control part for the Siemens service robot.
      • Open Domain Server uses Ruby to allow people using DynamicDNS clients to update in real time their IP configuration so that it can be mapped to static domains.
      • Ruby is being used within Lucent on a 3G wireless telephony product.
      System Administration
      • Ruby was used to write the central data collection portion ofLevel 3 Communications Unix Capacity and Planning system that gathers performance statistics from over 1700 Unix (Solaris and Linux) servers scattered around the globe.
      Web Applications
      • Basecamp, a web-based project management application developed by 37signals, is programmed entirely in Ruby.
      • 43 Things allows you to keep a list of goals and share it with the world. It was developed entirely in Ruby.
      • A List Apart, a magazine for people who make websites that has been around since 1997, has recently been revamped and uses a custom application built with Ruby on Rails.
      • Blue Sequence, a sophisticated mission-critical application which forms part of Toyota Motor Manufacturing’s own “sequence-in-time” production process, has recently been selected as finalist the British Computer (BCS) Information Management Awards.
      • The Metasploit Framework, a community open source project managed by Rapid7, is a free penetration testing platform that helps IT professionals assess the security of their networks and applications. The Metasploit Project consists of over 700,000 lines of code and has been downloaded over a million times in 2010. The commercial editions Metasploit Express andMetasploit Pro developed by Rapid7 are also based on Ruby.
  3. Installing Ruby
    1. You can download ruby from
    2. When in windows, just run the installer and you are good to go.
    3. To check, open cmd and type irb –simple-prompt , if you get below screen, everything is good.


Ruby Index

  1. Ruby Introduction
    1. Why Ruby
    2. Power of ruby
    3. Installing Ruby
  2. Ruby Helpful Resources
  3. Ruby Object Types
    1. Objects
    2. Variables
    3. Integers
    4. Floats
    5. Strings
    6. Arrays
    7. Array Methods
    8. Hashes
    9. Symbols
    10. Booleans
    11. Ranges
    12. Constants
  4. Control Structures
    1. Conditionals – If else elsif
    2. Conditional – unless, case
    3. Loops
    4. Iterators
  5. Code Block
    1. Definition
    2. Find
    3. Merge
    4. Collect
    5. Sort
    6. Inject
  6. Methods
    1. Defining and Calling Methods
    2. Variable Scope in Methods
    3. Arguments
    4. Argument default values
    5. return value
    6. Operators are also method
  7. Classes
    1. Defining and using classes
    2. Instances
    3. Attributes
    4. reader writer methods
    5. Attribute methods
    6. Initialize method
    7. Class methods
    8. Class attributes
    9. Class reader writer methods
    10. Inheritance
    11. Subclass overriding
    12. Accessing the superclass
  8. Modules
    1. Namespacing
    2. Mixins
    3. Load,require and include
    4. Enumerable as a mixin
  9. Working with files
    1. Input output basics
    2. File system basics
    3. File paths
    4. Accessing files
    5. Writing to files
    6. Reading from files
    7. File pointer
    8. Renaming and deleting files
    9. Examining file details
    10. Working with directories

Starting Ruby


%d bloggers like this: