Ruby Tutorial: 02.end

January 24, 2010 at 3:04 AM | Posted in Tutorial | Comments Off on Ruby Tutorial: 02.end
Tags: , , ,

Command: end

Syntax: end

Description: Ends a definition, module, or class

Usage: def start

command

end

class red

def something

command

end

end

When Used: This function is used after a conditional branch, definition, class, and module. Make sure that you use this function as much as necessary and never use this function when it is not necessary…

Advertisements

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: