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

- (Object) ask_yes_no(question, default = nil)



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

def ask_yes_no(question, default=nil)
end

- (Boolean) continue?

Returns:

  • (Boolean)


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

def continue?
  ask_yes_no 'Continue?', true
end

- (Object) debug(message)



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

def debug(message)
end

- (Object) error(message)



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

def error(message)
end

- (Object) indicate_activity



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

def indicate_activity
end

- (Object) info(message)



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

def info(message)
end

- (Object) separator



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

def separator
end

- (Object) warn(message)



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

def warn(message)
end