Sha256: af4cfea609e04f8766f67500969e5ea1877456885e244d44d06bc3a8c861201d
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
module WAB module Impl # Matches a node that has the same value as provided at the end of the # path provided. Any type is acceptable.# class Eq < PathExpr # Creates a new instance with the provided parameters. # # path:: path to the value to compare # value:: value to compare against def initialize(path, value) super(path) @value = value end def eval(data) data.get(path) == @value end def native() ['EQ', path, @value] end end # Eq end # Impl end # WAB
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wabur-0.7.0 | lib/wab/impl/exprs/eq.rb |
wabur-0.6.2 | lib/wab/impl/exprs/eq.rb |
wabur-0.6.1 | lib/wab/impl/exprs/eq.rb |
wabur-0.6.0 | lib/wab/impl/exprs/eq.rb |