class Namelab::CLI::Commands::Say

Constants

DEFAULT_ARGS

Public Instance Methods

call(sayopt:, **opts) click to toggle source
Calls superclass method Namelab::CLI::Commands::Generate#call
# File lib/namelab/cli.rb, line 66
def call(sayopt:, **opts)
  @say_args = sayopt.shellsplit
  @say_args.unshift(*DEFAULT_ARGS) if @say_args != DEFAULT_ARGS
  super
end
output(result) click to toggle source
# File lib/namelab/cli.rb, line 72
def output(result)
  system("/usr/bin/say", *@say_args, result)
end