README.md in interactive-0.3.0 vs README.md in interactive-0.4.0
- old
+ new
@@ -26,11 +26,11 @@
### Questions Without any Options
If you want to ask a user a question accepting all answers:
```ruby
require 'interactive'
-include 'interactive'
+include Interactive
question = Question.new do |q|
q.question = "What is your api token password?"
end
@@ -65,11 +65,11 @@
If you want to ask a user a question expecting certain answers:
```ruby
require 'interactive'
-include 'interactive'
+include Interactive
question = Question.new do |q|
q.question = "Which item do you want to use?"
q.options = [1..3, :cancel, :quit]
end
@@ -123,10 +123,10 @@
Providing an array of options to the options array will trigger the shortcut
explanation right after asking the question:
```ruby
require 'interactive'
-include 'interactive'
+include Interactive
# ...
options_list = ["/some/path", "/some/other/path"]
iq = Question.new do |q|