Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modify tutorial message

  • Loading branch information...
commit 3ef158523a1a5fd07a1e3b6965430fb4e1b5e8dc 1 parent 13695ad
@kachick authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.rdoc
  2. +1 −1  example/tutorial.rb
View
2  README.rdoc
@@ -46,7 +46,7 @@ Or excute "example/tutorial.rb".
==== input validation
- ask "What's your name?", input: /\A\w+ \w+\z/
+ ask 'What\'s your name?("firstname lastname")', input: /\A\w+ \w+\z/
==== mix the validations and procedures
View
2  example/tutorial.rb
@@ -10,7 +10,7 @@ def show(obj)
end
# with input validation
-name = ask "What's your name?", input: /\A\w+ \w+\z/
+name = ask 'What\'s your name?("firstname lastname")', input: /\A\w+ \w+\z/
show name
# with default value
Please sign in to comment.
Something went wrong with that request. Please try again.