Skip to content

Instantly share code, notes, and snippets.

@darkslategrey
Created January 2, 2014 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkslategrey/8224804 to your computer and use it in GitHub Desktop.
Save darkslategrey/8224804 to your computer and use it in GitHub Desktop.
/home/greg/.rbenv/versions/2.1.0/gemsets/xiki/gems/trogdoro-el4r-1.0.10/lib/el4r
537c537,548
< @@__system_to_string_count__ = 0
---
> class FixClassVar
> @@__system_to_string_count__ = 0
>
> def self.__system_to_string_count__
> @@__system_to_string_count__
> end
>
> def self.__system_to_string_count__=(value)
> @@__system_to_string_count__ = value
> end
> end
>
540,541c551,552
< tmpf = File.join(Dir.tmpdir, "#{$$}-#{@@__system_to_string_count__}")
< @@__system_to_string_count__ += 1
---
> tmpf = File.join(Dir.tmpdir, "#{$$}-#{FixClassVar.__system_to_string_count__}")
> FixClassVar.__system_to_string_count__ += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment