lib/tty/prompt.rb
def say(message = '', options = {})
      message = message.to_s
      return if message.empty?

      statement = Statement.new(self, options)
      statement.call(message)
    end
# Print statement out. If the supplied message ends with a space or
# tab character, a new line will not be appended.
#
# @example
#   say("Simple things.", color: :red)
#
# @param [String] message
#
# @return [String]
#
# @api public
Print statement out. If the supplied message ends with a space or
tab character, a new line will not be appended.
Print statement out . If the supplied message ends with a space or tab character a new line will not be appended .
def say(message = '', options = {})
      message = message.to_s
      return if message.empty?
      statement = Statement.new(self, options)
      statement.call(message)
    end
def say ( message = '' , options = { } ) message = message . to_s return if message . empty? statement = Statement . new ( self , options ) statement . call ( message ) end
Print statement out.
Print statement out .
None
String
message
options
None
example
say("Simple things.", color: :red)
say ( " Simple things . " color : : red )
api
None