RubyGems Navigation menu

lazy_string 0.0.1

LazyString is 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.0.1 - September 29, 2012 (6 KB)

Authors:

  • Aaron Beckerman

Owners:

23d517bc09a77c341c0a8eedda2822ca

Total downloads 911

For this version 911

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'lazy_string', '~> 0.0.1' = Copy to clipboard Copied!

install:
gem install lazy_string = Copy to clipboard Copied!

Links: