Class: FortuneTeller::NilPanel

Inherits:
Object
  • Object
show all
Defined in:
lib/fortune_teller/nil_panel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#uiObject (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

#chooseObject



19
20
21
# File 'lib/fortune_teller/nil_panel.rb', line 19

def choose
  ui.exit
end

#pickObject



15
16
17
# File 'lib/fortune_teller/nil_panel.rb', line 15

def pick
  ui.exit
end

#present?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/fortune_teller/nil_panel.rb', line 11

def present?
  false
end

#to_sObject



7
8
9
# File 'lib/fortune_teller/nil_panel.rb', line 7

def to_s
  ""
end