CSC/ECE 517 Fall 2011/ch4 4h sv: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 1: Line 1:
=Design Patterns in Ruby=
=Design Patterns in Ruby=
==Singleton Pattern==
The Singleton design pattern is used to restrict the instantiation of a class to only one instance which is globally available.
==Adapter Pattern==
==Command Pattern==
==Strategy Pattern==
==References==
==References==
http://designpatternsinruby.com/section01/article.html
http://designpatternsinruby.com/section01/article.html

Revision as of 18:13, 16 October 2011

Design Patterns in Ruby

Singleton Pattern

The Singleton design pattern is used to restrict the instantiation of a class to only one instance which is globally available.

Adapter Pattern

Command Pattern

Strategy Pattern

References

http://designpatternsinruby.com/section01/article.html