Module: EacRubyUtils::Speaker::Sender

Defined in:
lib/eac_ruby_utils/speaker/sender.rb

Instance Method Summary collapse

Instance Method Details

#infov(*args) ⇒ Object


8
9
10
# File 'lib/eac_ruby_utils/speaker/sender.rb', line 8

def infov(*args)
  speaker_receiver.infov(*args)
end

#input(question, options = {}) ⇒ Object

Options:

+bool+ ([Boolean], default: +false+): requires a answer "yes" or "no".
+list+ ([Hash] or [Array], default: +nil+): requires a answer from a list.
+noecho+ ([Boolean], default: +false+): does not output answer.

27
28
29
# File 'lib/eac_ruby_utils/speaker/sender.rb', line 27

def input(question, options = {})
  speaker_receiver.input(question, options)
end

#speaker_receiverEacRubyUtils::Speaker::Receiver

Shortcut to [EacRubyUtils::Speaker.current_receiver].


19
20
21
# File 'lib/eac_ruby_utils/speaker/sender.rb', line 19

def speaker_receiver
  ::EacRubyUtils::Speaker.current_receiver
end