This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 85a4b6712c083a5338567b11d073d4fbec7add8e
tree 2a762a884264cdb117b26c8820865ca7d68139a0
parent 7d954e0c9903a6976283052bf765a87c85cd1ac2
tree 2a762a884264cdb117b26c8820865ca7d68139a0
parent 7d954e0c9903a6976283052bf765a87c85cd1ac2
lazyeval /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
History.txt | ||
| |
License.txt | ||
| |
Manifest.txt | ||
| |
README.txt | ||
| |
Rakefile | ||
| |
config/ | ||
| |
doc/ | ||
| |
lazyeval.gemspec | ||
| |
lib/ | ||
| |
log/ | ||
| |
script/ | ||
| |
setup.rb | ||
| |
tasks/ | ||
| |
test/ | ||
| |
website/ |
README.txt
== Lazyeval * http://github.com/vitaly/lazyeval/ == DESCRIPTION This GEM allows to call methods lazily. i.e. the actual work will not be performed until the result is used. There's no promise/force semantics. just a single call (or block) is stored and executed the first time the (lazy) result is accessed. == EXAMPLES OF USAGE # simple lazy call user = User.lazy.find(:first) # will not access a db puts user.name # this will actually perform the find and then get the name from # the result # example for a lazy block user_name = User.lazy { |user| user.find(:first).user_name } # no db access puts user_name # db will be accessed here








