Permalink
Browse files

Use plural methods when multiple args are passed

  • Loading branch information...
1 parent 479efd4 commit 80a4e3353606dd1b4ad40e7e935f05b80c319bc8 @josh josh committed Jul 18, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -10,7 +10,7 @@ Find Ruby files in this project:
trail = Hike::Trail.new "/Users/sam/Projects/hike"
trail.append_extension ".rb"
- trail.append_path "lib", "test"
+ trail.append_paths "lib", "test"
trail.find "hike/trail"
# => "/Users/sam/Projects/hike/lib/hike/trail.rb"
@@ -21,8 +21,8 @@ Find Ruby files in this project:
Explore your Ruby load path:
trail = Hike::Trail.new "/"
- trail.append_extension ".rb", ".bundle"
- trail.append_path *$:
+ trail.append_extensions ".rb", ".bundle"
+ trail.append_paths *$:
trail.find "net/http"
# => "/Users/sam/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb"
@@ -33,7 +33,7 @@ Explore your Ruby load path:
Explore your shell path:
trail = Hike::Trail.new "/"
- trail.append_path *ENV["PATH"].split(":")
+ trail.append_paths *ENV["PATH"].split(":")
trail.find "ls"
# => "/bin/ls"

0 comments on commit 80a4e33

Please sign in to comment.