Showing posts with label Patterns. Show all posts
Showing posts with label Patterns. Show all posts

Saturday, September 29, 2012

Practical Patterns on Ruby - Singleton

require 'singleton'
class Schedule
    include Singleton
    ...
end

Schedule.instance.[some_method]