You can append ; nil to your statements.
Example:
users = User.all; nil
irb prints the return value of the last executed statement; thus in this case it’ll print only nil since nil is the last executed valid statement.
You can append ; nil to your statements.
Example:
users = User.all; nil
irb prints the return value of the last executed statement; thus in this case it’ll print only nil since nil is the last executed valid statement.