RubyGems Navigation menu

lazy_string 0.2.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.2.0 - August 4, 2016 (7 KB)
Show all versions (3 total)

Authors:

  • Aaron Beckerman

Owners:

23d517bc09a77c341c0a8eedda2822ca

SHA 256 checksum:

8d1054fe75610b69943ae2094c708f01a99515e0b8a63a11121873a820e0b6fd

Total downloads 2,153

For this version 251

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

MIT

Required Ruby Version: >= 1.8.7

Links: