Sha256: ca3a12438cf4e6011e2456df88071aca64387314a572782cbc7d9b0dd5ceec92
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
require File.join('jsonpath', 'expression') require File.join('jsonpath', 'wrapper') class JsonPath def self.path(expression) @expression = Expression.new(expression) if block_given? yield @expression else @expression end end def self.wrap(object) @wrapper = Wrapper.new(object) if block_given? yield @wrapper else @wrapper end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonpath-0.0.2 | lib/jsonpath.rb |