Added Gitlab::Lazy
This class can be used to lazy-evaluate blocks of code the first time they're called. This can be useful when a method performs a certain heavy operation (e.g. a SQL query) that you only want to perform whenever the result is used for the first time.
Showing
lib/gitlab/lazy.rb
0 → 100644
spec/lib/gitlab/lazy_spec.rb
0 → 100644
Please register or sign in to comment