IHYPRESS PROGRAMMING
CGI/Ruby programs with code and output for beginners
HOME
|
ASP
|
C
|
CSS
|
GNUPLOT
|
HTML
|
JAVASCRIPT
|
PERL
|
PHP
|
PYTHON
|
RUBY
|
SVG
share
My First Ruby Program
A simple skeleton of a Ruby program.
String Expressions
Simple examples of Ruby string expressions.
Numerical Expressions
Simple examples of Ruby numerical expressions.
Class Conversions
Simple examples of class conversions in Ruby.
Counting Loops
Simple counting loops in Ruby.
Conditional Loops
Simple conditional (while) loops in Ruby.
Array Methods
Array sorting, reversing, adding, and removing in Ruby.
Array Loops
Array iterations in Ruby.
Hashes
Simple use of hashes in Ruby.
Functions
Examples of simple Ruby functions
The
if
Statement
If and else statements in Ruby.
Yield Statement
Using the yield statement in Ruby.
Here Documents
Simple here documents in Ruby.
The
case/when
Statement
Example of the case/when statement in Ruby.
Time and Date
Using times and dates in Ruby.
Setting a Cookie
Setting a cookie in Ruby.
Reading a Cookie
Reading a cookie in Ruby.
Tutorials:
Reserved Words
A list of Ruby's reserved words you can't use for variable or function names.
COPYRIGHT © 2015-2026 IHY PRESS Frankfurt am Main 60329 Deutschland