diff options
author | Lee Jarvis <lee@jarvis.co> | 2011-07-07 14:26:57 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2011-07-07 14:26:57 +0100 |
commit | e07f69fc52403755704cf6353b08c6121348d2d9 (patch) | |
tree | 2508f76f39a42684e943a365c2e5b2097124a861 /README.md | |
parent | d3ae1a7a4dffe46fe022797c55117c136756fcc0 (diff) | |
download | slop-e07f69fc52403755704cf6353b08c6121348d2d9.tar.gz |
updated README to_hash example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |