Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Ruby
Design Patterns 26 codes
Home
Ruby
Design Patterns
1 Add another observer
2 An Array as a Composite
3 An Easier Way of Command Pattern
4 Array Iterator
5 Classes as Singletons
6 Code Blocks as Commands
7 Code Blocks as Observers
8 Commands That Record (Command and composite pattern)
9 Composite with Push and index Operators
10 Coupling Systems Loosely with Callbacks
11 Creating Composites
12 Decorator pattern
13 Define a singleton method, one that is tied to a single object
14 Define class methods by using a class within a classs singleton class like the code
15 Factory pattern
16 Include Singleton
17 Internal Iterators versus External Iterators
18 Modules as Singletons
19 Replacing the Algorithm with the Strategy
20 Sharing Data between the Context and the Strategy
21 Singleton a class
22 Sprucing Up the Composite with Operators
23 Staying Informed (Observer pattern)
24 Strategy pattern with Ruby dynamic attributes
25 Undo by a Command
26 Use class method to create object