| Path: | README.txt |
| Last Update: | Fri Dec 11 13:58:06 -0800 2009 |
Sketches allows you to create and edit Ruby code from the comfort of your editor, while having it safely reloaded in IRB whenever changes to the code are saved.
$ sudo gem install sketches
Then require sketches in your .irbrc file:
require 'sketches'
Sketches can be configured to use a custom editor command:
Sketches.config :editor => 'gvim'
Sketches can also be configured to run in a new terminal:
Sketches.config :editor => 'vim',
:background => true,
:terminal => lambda { |cmd|
"xterm -fg gray -bg black -e #{cmd.dump}"
}
sketch
sketch :foo
sketch_from 'path/to/bar.rb'
sketch 2 sketch :foo
sketches
name_sketch 2, :foo
save_sketch :foo, 'path/to/foo.rb'
Sketches - A Ruby library for live programming and code reloading.
Copyright (c) 2009 Hal Brodigan (postmodern.mod3 at gmail.com)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA