diff options
author | Gordon Fontenot <gordon@thoughtbot.com> | 2013-03-15 12:56:08 -0300 |
---|---|---|
committer | Gordon Fontenot <gordon@thoughtbot.com> | 2013-03-15 12:56:08 -0300 |
commit | dacfd449b3593b5775fe7fec7b806dac88b97e56 (patch) | |
tree | e0f8ff093809dc00f1092739960b6f000a0338ca /README.md | |
parent | e60be5c85e7309251a2a94a8551575a78beda02e (diff) | |
download | slop-dacfd449b3593b5775fe7fec7b806dac88b97e56.tar.gz |
Update README.md
Update the documentation for Ruby's 1.9 hash syntax, and fix the example for the `:as` argument
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -175,8 +175,8 @@ require 'slop' opts = Slop.parse do on :n, :name=, 'Your name' - on :a, :age=, 'Your age', :as => :int + on :a, :age=, 'Your age', as: Integer end opts.to_hash #=> { :name => 'lee', :age => 105 } -```
\ No newline at end of file +``` |