Permalink
Browse files

+ Added aliases Sexp#head & Sexp#rest for readability

[git-p4: depot-paths = "//src/sexp_processor/dev/": change = 8311]
  • Loading branch information...
1 parent 79dc7cb commit 8c7d330c04346f5a882ae9d9cd630c03de16f821 @zenspider zenspider committed Mar 18, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/sexp.rb
View
@@ -237,6 +237,9 @@ 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.

0 comments on commit 8c7d330

Please sign in to comment.