Class: TenpaiWakaruMan::Detector
- Inherits:
-
Object
- Object
- TenpaiWakaruMan::Detector
- Defined in:
- lib/tenpai_wakaru_man.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Detector
constructor
A new instance of Detector.
- #ready?(tiles) ⇒ Boolean
- #winning?(tiles) ⇒ Boolean
Constructor Details
#initialize ⇒ Detector
Returns a new instance of Detector.
18 19 |
# File 'lib/tenpai_wakaru_man.rb', line 18 def initialize end |
Class Method Details
.ready?(str) ⇒ Boolean
13 14 15 |
# File 'lib/tenpai_wakaru_man.rb', line 13 def ready?(str) new.ready?(str) end |
.winning?(str) ⇒ Boolean
9 10 11 |
# File 'lib/tenpai_wakaru_man.rb', line 9 def winning?(str) new.winning?(str) end |