HomePhorge

Avoid class level variables, as they are not helpful.
32cc8ff9ab5cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Avoid class level variables, as they are not helpful.

Ruby 1.9.3 highlights some of the strange and confusing problems around class
level variables in Ruby; they tend to look and behave much more like global
state than people imagine, and lead down the road to trouble.

This migrates away from them to other mechanisms better fitted to solving the
problem in the Ruby language - and, typically, in ways that are much more
portable between the different Ruby interpreter implementations.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUd7993a877f61: Don't cache check for `cdrom` source in the apt provider.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU32cc8ff9ab5c: Avoid class level variables, as they are not helpful. (authored by Daniel Pittman <daniel@puppetlabs.com>).Mar 30 2012, 9:15 PM