RubyGems Navigation menu

lazy_string 0.3.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.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.7.0 - March 12, 2024 (6 KB)
  2. 0.4.0 - November 13, 2022 (6.5 KB)
  3. 0.3.0 - May 28, 2018 (6.5 KB)
Show all versions (8 total)

Owners:

Authors:

  • Aaron Beckerman

SHA 256 checksum:

4637583f0497ae9775157e973f4db79be3991480b6542f97f6c9f26670f7111d

Total downloads 6,073

For this version 1,913

License:

MIT

Required Ruby Version: >= 1.8.7

Links: