diff options
author | Florian Frank <flori@ping.de> | 2009-08-24 16:20:32 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2009-08-24 16:20:32 +0200 |
commit | 10f03df1f6a54edaae86e87e1fd7d9a6a6a319f1 (patch) | |
tree | d7133d6f5ba8bc2f195ee6e070b34331bd4f5d04 /bin/edit_json.rb | |
download | json-10f03df1f6a54edaae86e87e1fd7d9a6a6a319f1.tar.gz |
initial commit
Diffstat (limited to 'bin/edit_json.rb')
-rwxr-xr-x | bin/edit_json.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/edit_json.rb b/bin/edit_json.rb new file mode 100755 index 0000000..04a8189 --- /dev/null +++ b/bin/edit_json.rb @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +require 'json/editor' + +filename, encoding = ARGV +JSON::Editor.start(encoding) do |window| + if filename + window.file_open(filename) + end +end |