Method: Code.clear_and_go_back

Defined in:
lib/xiki/code.rb

.clear_and_go_back(location) ⇒ Object



652
653
654
655
656
657
658
659
660
661
# File 'lib/xiki/code.rb', line 652

def self.clear_and_go_back location
  if location   # Go back to starting point
    View.clear

    View.clear "*ol"
    View.to_window location
    return true   # Indicate to exit method
  end
  return false   # Don't exit
end