RubyGems Navigation menu

lazy_string 0.1.0

This library provides LazyString, a class for computing strings only when necessary -- that is, when #to_str or #to_s is called. This is useful when computing the string is expensive but the string is unlikely to be used: an error message passed as a method argument, for example.

Versions:

  1. 0.1.0 - February 13, 2016 (7 KB)
Show all versions (2 total)

Authors:

  • Aaron Beckerman

Owners:

23d517bc09a77c341c0a8eedda2822ca

SHA 256 checksum:

046ab933ecb3904f0ab326a7947e9da8c0a143e887e46b24f4422f2fddb82844

Total downloads 1,899

For this version 427

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

MIT

Required Ruby Version: >= 1.8.7

Links: