Patch: genrpbindings to render working ruby bindings
Vincent Batts <[email protected]>
| Newsgroups | gmane.comp.window-managers.ratpoison.devel |
|---|---|
| Message-ID | <CAN6Zp5xp1BwWYo6S4kPgBYEZhc4Wih2TBd6VKjo2YdBycEkf4w@mail.gmail.com> |
In the contrib/genrpbindings script, removing the space between method name and the parenthesis, to fix the ruby syntax. Take care, -- Vincent Batts _______________________________________________ Ratpoison-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/ratpoison-devel
ratpoison-genbindings.patch
(application/octet-stream, 1 KB)
diff --git a/contrib/genrpbindings b/contrib/genrpbindings
index 51a6148..62efa6d 100755
--- a/contrib/genrpbindings
+++ b/contrib/genrpbindings
@@ -91,7 +91,7 @@ module Ratpoison
RATPOISON="$RATPOISON"
- def command (command, *args)
+ def command(command, *args)
return `#{RATPOISON} -c "#{command} #{args.join(' ')}"`
end
module_function :command
@@ -170,8 +170,8 @@ while (<ACTIONS_C>) {
print PERL "sub $name { return command (\"$name\", \@_); }";
print ELISP "(defun-ratpoison $name)";
print COMMONLISP "(defun-ratpoison $name)";
- print RUBY " def $name (*args)";
- print RUBY " return command (\"$name\", args)";
+ print RUBY " def $name(*args)";
+ print RUBY " return command(\"$name\", args)";
print RUBY " end";
print RUBY " module_function :$name\n";
print PYTHON "def rp_$name( *args ): return rp_command ( '$name ' + ' '.join( args ) )";