Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created September 16, 2008 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ab5tract/11002 to your computer and use it in GitHub Desktop.
Save ab5tract/11002 to your computer and use it in GitHub Desktop.
$ waves-console
>> Waves.cache[:o] = :p
NoMethodError: undefined method `[]=' for nil:NilClass
from (irb):1
>> Waves.config.cache
=> {:dir=>"/tmp"}
>> m = Waves::Layers::Cache::FileCache
=> Waves::Layers::Cache::FileCache
>> o = m.new Waves.config.cache
NoMethodError: undefined method `new' for Waves::Layers::Cache::FileCache:Module
from (irb):4
>> o = m::IPI.new Waves.config.cache
=> #<Waves::Layers::Cache::FileCache::IPI:0x19baa54 @directory="/tmp", @cache={}, @keys=[]>
>> o[:t] = :p
=> :p
>> o[:t]
=> :p
>> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment