Class: EacRubyUtils::Rspec::StubSpeaker

Inherits:
Object
  • Object
show all
Includes:
Speaker::Receiver
Defined in:
lib/eac_ruby_utils/rspec/stub_speaker.rb

Instance Method Summary collapse

Methods included from ActsAsAbstract

abstract?

Instance Method Details

#error(_string) ⇒ Object



10
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 10

def error(_string); end

#fatal_error(string) ⇒ Object



12
13
14
15
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 12

def fatal_error(string)
  error(string)
  raise('Fatal error')
end

#info(_string) ⇒ Object



22
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 22

def info(_string); end

#infom(_string) ⇒ Object



24
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 24

def infom(_string); end

#infov(*_args) ⇒ Object



26
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 26

def infov(*_args); end

#input(_question, _options = {}) ⇒ Object

See Also:

  • Speaker::Sender.input


18
19
20
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 18

def input(_question, _options = {})
  raise 'Input requested'
end

#out(_string = '') ⇒ Object



28
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 28

def out(_string = ''); end

#puts(_string = '') ⇒ Object



30
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 30

def puts(_string = ''); end

#success(_string) ⇒ Object



32
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 32

def success(_string); end

#title(_string) ⇒ Object



34
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 34

def title(_string); end

#warn(_string) ⇒ Object



36
# File 'lib/eac_ruby_utils/rspec/stub_speaker.rb', line 36

def warn(_string); end