Method: IRB::Context#echo

Defined in:
lib/irb/context.rb

#echoObject Also known as: echo?

Whether to echo the return value to output or not.

Uses IRB.conf[:ECHO] if available, or defaults to true.

puts "hello"
# hello
#=> nil
IRB.CurrentContext.echo = false
puts "omg"
# omg


270
271
272
# File 'lib/irb/context.rb', line 270

def echo
  @echo
end