lib/volt/cli/console.rb
# To make the console more useful, we make it so we flush the event registry
# after each line.  This makes it so events are triggered after each line.
# To accomplish this we monkey-patch pry.
To make the console more useful, we make it so we flush the event registry
after each line.  This makes it so events are triggered after each line.
To accomplish this we monkey-patch pry.
To make the console more useful we make it so we flush the event registry after each line . This makes it so events are triggered after each line . To accomplish this we monkey - patch pry .
def rep(target = TOPLEVEL_BINDING)
    target = Pry.binding_for(target)
    result = re(target)
    Pry.critical_section do
      show_result(result)
    end
    Volt::Computation.flush!
  end
def rep ( target = TOPLEVEL_BINDING ) target = Pry . binding_for ( target ) result = re ( target ) Pry . critical_section do show_result ( result ) end Volt :: Computation . flush! end
To make the console more useful, we make it so we flush the event registry
after each line.
To make the console more useful we make it so we flush the event registry after each line .
# Automatically flush after each line
target