User-submitted Ruby Projects

258
3680 reads
EricRygh's picture

Submitted by

EricRygh
fibonacci
Outputs a Fibonacci sequence of a length determined by the user.
Run It Now!
226
2548 reads
EricRygh's picture

Submitted by

EricRygh
coinflip
Flips a coin based on user input, prints the results.
Run It Now!
170
2351 reads
EricRygh's picture

Submitted by

EricRygh
happyBirthday
Happy birthday one-liner.
Run It Now!
163
1533 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
1373 reads
Mastermind's picture

Submitted by

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

Submitted by

Mastermind
Tags:

Array in ruby
Below program demonstrates how to use array in ruby.
Run It Now!
149
1259 reads
silvercodes's picture

Submitted by

silvercodes
Tags:

Printing variable
Printing string varible with puts and print
Run It Now!
144
1094 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!
143
1642 reads
silvercodes's picture

Submitted by

silvercodes
Tags:

Length of the string
Print out the length of the string
Run It Now!
141
1033 reads
silvercodes's picture

Submitted by

silvercodes
Tags:

Math
Implementing simple math
Run It Now!
Make & share a project and showcase your talent to the world!