User-submitted Ruby Projects

163
2087 reads
dninja95's picture

Submitted by

dninja95
Tags:

Class Implement
This example explains how to define a class and instantiate it.
Run It Now!
162
2391 reads
Mastermind's picture

Submitted by

Mastermind
Inheritance Example
Simple example of how to implement inheritance in Ruby.
Run It Now!
156
2224 reads
Mastermind's picture

Submitted by

Mastermind
Tags:

Array in ruby
Below program demonstrates how to use array in ruby.
Run It Now!
141
1512 reads
CrazyCoder's picture

Submitted by

CrazyCoder
Tags:

Declare Class
Below program demonstrates how to implement a class in ruby
Run It Now!
140
1678 reads
RichaThomas's picture

Submitted by

RichaThomas
Factorial of a number
prints the factorial of a number.
Run It Now!
144
1562 reads
RichaThomas's picture

Submitted by

RichaThomas
Print Output
Output in ruby "puts" writes to the screen with a carriage return at the end. "print" does the same thing without the carriage return. "printf" formats variables like in C and Java 5.
Run It Now!
139
5117 reads
RichaThomas's picture

Submitted by

RichaThomas
HelloWorld
The below program reads username from console and dispays the output.
Run It Now!