Irb session history

Is there any way to access the current session’s IRB history as an
array of commands from within IRB?

martin

On 12/21/2011 01:41 PM, Martin DeMello wrote:

Is there any way to access the current session’s IRB history as an
array of commands from within IRB?

does this help?

IRB::ReadlineInputMethod::HISTORY.to_a

perfect, thanks!

martin

On Wed, Dec 21, 2011 at 3:58 PM, Joel VanderWerf

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs