summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorLee Jarvis <lee@jarvis.co>2011-07-07 14:26:57 +0100
committerLee Jarvis <lee@jarvis.co>2011-07-07 14:26:57 +0100
commite07f69fc52403755704cf6353b08c6121348d2d9 (patch)
tree2508f76f39a42684e943a365c2e5b2097124a861 /README.md
parentd3ae1a7a4dffe46fe022797c55117c136756fcc0 (diff)
downloadslop-e07f69fc52403755704cf6353b08c6121348d2d9.tar.gz
updated README to_hash example
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index e25455f..526d805 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ wiki page.
You can also return your options as a Hash
- opts.to_hash #=> {'name' => 'Lee Jarvis', 'verbose' => true, 'age' => nil, 'sex' => 'male'}
+ opts.to_hash #=> {:name => 'Lee Jarvis', :verbose => true, :age => nil, :sex => 'male'}
If you want some pretty output for the user to see your options, you can just
send the Slop object to `puts` or use the `help` method.