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.

Gemfile
          gem 'lazy_string', '~> 0.0.1'
  
  
  
  
  
  
  

install
          gem install lazy_string
  
  
  
  
  
  
  

Authors:

  • Aaron Beckerman

Owners:

23d517bc09a77c341c0a8eedda2822ca

ab9

Total downloads 882

For this version 882

Required Ruby Version: None

Links:

Versions:

  1. 0.0.1 - September 29, 2012 (6 KB)