class Object
Public Instance Methods
s(*args, &blk)
click to toggle source
This is a very important shortcut to make using Sexps much more awesome.
In its normal form +s(…)+, creates a Sexp instance. If passed a block, it creates a Sexp::Matcher
using the factory methods on Sexp.
See Matcher and other factory class methods on Sexp.
# File lib/sexp.rb, line 391 def s *args, &blk return Sexp.class_eval(&blk) if blk Sexp.new(*args) end