Skip to content

Instantly share code, notes, and snippets.

@lbt
Created May 5, 2011 18:03
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 lbt/957541 to your computer and use it in GitHub Desktop.
Save lbt/957541 to your computer and use it in GitHub Desktop.
# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0>
irb(main):003:0* require 'ruote'
=> true
irb(main):004:0> require 'ruote/storage/fs_storage'
=> true
irb(main):005:0> require 'ruote-amqp'
=> true
irb(main):006:0> require 'yajl/json_gem'
=> true
irb(main):007:0> require 'rufus/json'
=> false
irb(main):008:0> Rufus::Json.has_backend?
=> false
irb(main):009:0> Rufus::Json.detect_backend
=> [#<Proc:0xf7247f64@/usr/lib/ruby/vendor_ruby/rufus/json.rb:59>, #<Proc:0xf7247e60@/usr/lib/ruby/vendor_ruby/rufus/json.rb:60>, #<Proc:0xf7247dc0@/usr/lib/ruby/vendor_ruby/rufus/json.rb:61>]
irb(main):010:0> Rufus::Json.has_backend?
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment