Sha256: 4e3a8f3186c58a0c0afb08276b9551097d4bd7f3dc158bfc1f92c01572e0f754
Contents?: true
Size: 308 Bytes
Versions: 5
Compression:
Stored size: 308 Bytes
Contents
# See SexpQueryBuilder.atom class SexpPath::Matcher::Atom < SexpPath::Matcher::Base # Satisfied when +o+ is an atom (anything that is not an S-Expression) def satisfy?(o, data={}) return nil if o.is_a? Sexp capture_match o, data end # Prints as +atom+ def inspect "atom" end end
Version data entries
5 entries across 5 versions & 2 rubygems