Class: FortuneTeller::NilPanel
- Inherits:
-
Object
- Object
- FortuneTeller::NilPanel
- Defined in:
- lib/fortune_teller/nil_panel.rb
Instance Attribute Summary collapse
-
#ui ⇒ Object
readonly
Returns the value of attribute ui.
Instance Method Summary collapse
- #choose ⇒ Object
-
#initialize(ui) ⇒ NilPanel
constructor
A new instance of NilPanel.
- #pick ⇒ Object
- #present? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(ui) ⇒ NilPanel
Returns a new instance of NilPanel.
4 5 6 |
# File 'lib/fortune_teller/nil_panel.rb', line 4 def initialize(ui) @ui = ui end |
Instance Attribute Details
#ui ⇒ Object (readonly)
Returns the value of attribute ui.
3 4 5 |
# File 'lib/fortune_teller/nil_panel.rb', line 3 def ui @ui end |
Instance Method Details
#choose ⇒ Object
19 20 21 |
# File 'lib/fortune_teller/nil_panel.rb', line 19 def choose ui.exit end |
#pick ⇒ Object
15 16 17 |
# File 'lib/fortune_teller/nil_panel.rb', line 15 def pick ui.exit end |
#present? ⇒ Boolean
11 12 13 |
# File 'lib/fortune_teller/nil_panel.rb', line 11 def present? false end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/fortune_teller/nil_panel.rb', line 7 def to_s "" end |