Sha256: 3aa5a5f4d26e846f5832e2f7ee59ea4e8c6d278d0ee334cbfb2603379707088f

Contents?: true

Size: 210 Bytes

Versions: 4

Compression:

Stored size: 210 Bytes

Contents

require 'jq'

module JQ::Extend
  def jq(program, &block)
    src = MultiJson.dump(self)
    JQ(src).search(program, &block)
  end
end

class Hash;  include JQ::Extend; end
class Array; include JQ::Extend; end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-jq-0.1.9 lib/jq/extend.rb
ruby-jq-0.1.8 lib/jq/extend.rb
ruby-jq-0.1.7 lib/jq/extend.rb
ruby-jq-0.1.6 lib/jq/extend.rb