summaryrefslogtreecommitdiff
path: root/contrib/genrpbindings
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2012-08-10 01:16:38 -0400
committerBernhard R. Link <brlink@debian.org>2012-08-10 11:36:26 +0200
commit9d1edbd9c618b063a4baae39a82a81da236ea72f (patch)
treeada6008b5f625c9e5db3c8f6d8175bc7bdc5e195 /contrib/genrpbindings
parent0509e1dbde7b246e1bfec177ecb451e57bde8788 (diff)
downloadratpoison-9d1edbd9c618b063a4baae39a82a81da236ea72f.zip
contrib/genrpbindings: removing the space between method name and the parenthesis
Ruby syntax got more restrictive, so spaces are no longer allowed there.
Diffstat (limited to 'contrib/genrpbindings')
-rwxr-xr-xcontrib/genrpbindings6
1 files changed, 3 insertions, 3 deletions
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 ) )";