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.

Versions:

  1. 0.3.0 - May 28, 2018 (6.5 KB)
Show all versions (4 total)

Authors:

  • Aaron Beckerman

Owners:

A35803e882a32095b814e3db2a058885

SHA 256 checksum:

4637583f0497ae9775157e973f4db79be3991480b6542f97f6c9f26670f7111d

Total downloads 3,458

For this version 172

Gemfile:
= Copy to clipboard Copied!

install:
=

License:

MIT

Required Ruby Version: >= 1.8.7

Links: