Skip to content

Ruby built in pattern that provides a simple mechanism for one object to inform set of interested third party object when state changes.

Notifications You must be signed in to change notification settings

Njunu-sk/Observable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Observer

  • This pattern provides a simple mechanism for one object to inform a set of interested third-party objects when its state changes.

Maintenance Example

  • A car object, mileage will be recorded.

  • Once car has reached certain number of miles then maitenance will be needed.

Product Example

  • A product object, quantity is recorded

  • When product quantity is zero then a notification will be thrown.

About

Ruby built in pattern that provides a simple mechanism for one object to inform set of interested third party object when state changes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages