Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- def initialize
- @@log = Syslog.open("foo")
- end
- end
- class Foo
- def do_something
- Syslog.open do
- # work with the syslog here
- end
- end
- end
- class Foo
- def initialize
- @@log = Syslog.open("foo")
- end
- def Foo.finalize(id)
- @@log.close if @@log
- end
- end
Add Comment
Please, Sign In to add comment