Expand ruby definition with support for console sessions (irb)