Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
BEGIN END « Statement « Ruby
Ruby
Statement
BEGIN END
1.
Execution Before or After a Program
2.
The code in a block labeled with the keyword BEGIN is run automatically when a Ruby program is loaded
3.
The code in a block labeled END is automatically run when the program finishes.