lib/sexp.rb in sexp_processor-4.1.5 vs lib/sexp.rb in sexp_processor-4.2.0
- old
+ new
@@ -235,9 +235,12 @@
def sexp_body
self[1..-1]
end
+ alias :head :sexp_type
+ alias :rest :sexp_body
+
##
# If run with debug, Sexp will raise if you shift on an empty
# Sexp. Helps with debugging.
def shift