Magic8Ball 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/magic8ball.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  class Magic8Ball
2
- def self.answer
3
- puts "Hello world!"
2
+ def self.answer(question = 'May shoud I try?')
3
+ Answerator.answer(question)
4
4
  end
5
5
  end
6
+
7
+ require "magic8ball/answerator"
@@ -0,0 +1,7 @@
1
+ class Answerator
2
+
3
+ def self.answer(question)
4
+ puts "Your question: "+question+"\n"
5
+ puts "Yes. Try again!"
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Magic8Ball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,6 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/magic8ball.rb
21
+ - lib/magic8ball/answerator.rb
21
22
  homepage: http://rubygems.org/gems/magic8ball
22
23
  licenses:
23
24
  - MIT