Class: CSD::UserInterface::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/csd/user_interface/base.rb

Overview

This is the parent class of all user interfaces.

Direct Known Subclasses

CLI, Silent

Instance Method Summary collapse

Instance Method Details

#ask_yes_no(question, default = nil) ⇒ Object



17
18
# File 'lib/csd/user_interface/base.rb', line 17

def ask_yes_no(question, default=nil)
end

#continue?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/csd/user_interface/base.rb', line 20

def continue?
  ask_yes_no 'Continue?', true
end

#debug(message) ⇒ Object



24
25
# File 'lib/csd/user_interface/base.rb', line 24

def debug(message)
end

#error(message) ⇒ Object



33
34
# File 'lib/csd/user_interface/base.rb', line 33

def error(message)
end

#indicate_activityObject



14
15
# File 'lib/csd/user_interface/base.rb', line 14

def indicate_activity
end

#info(message) ⇒ Object



27
28
# File 'lib/csd/user_interface/base.rb', line 27

def info(message)
end

#separatorObject



11
12
# File 'lib/csd/user_interface/base.rb', line 11

def separator
end

#warn(message) ⇒ Object



30
31
# File 'lib/csd/user_interface/base.rb', line 30

def warn(message)
end