class Sexp::Atom

Matches any atom (non-Sexp).

examples:

s(:a)        / s{ s(atom) } #=> [s(:a)]
s(:a, s(:b)) / s{ s(atom) } #=> [s(:b)]

Public Instance Methods

satisfy?(o) click to toggle source

Satisfied when o is an atom.

# File lib/sexp_matcher.rb, line 794
def satisfy? o
  !(o.kind_of? Sexp)
end