RubyGems.org

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.

installgem install lazy_string
Authors

Aaron Beckerman

834 total downloads 834 for this version
Owners

23d517bc09a77c341c0a8eedda2822ca

Gemfile
gem 'lazy_string', '~> 0.0.1'
Versions
  1. 0.0.1 September 29, 2012 (6 KB)