[Geany-Users] beautify-ruby-code-with-geany

Colomban Wendling lists.ban at herbesfolles.org
Sun Dec 23 21:20:27 UTC 2012


Le 23/12/2012 21:26, thufir a écrit :
> On Sun, 23 Dec 2012 20:30:19 +0100, Colomban Wendling wrote:
> 
>> Your .rbeautify.rb script seems to use /usr/bin/ruby, while you specify
>> a specific Ruby paths for the compile/execute, is that normal?
> 
> Ohhh, I see.  In any event I was using the wrong script.  Here's the 
> correct usage as so:
> 
> thufir at dur:~/ruby$ 
> thufir at dur:~/ruby$ cat mail.rb 
> require 'yaml'
> require 'net/imap'
> require 'mail'
> 
> 2.times do
> puts 'hello world'
> end
> 
> thufir at dur:~/ruby$ 
> thufir at dur:~/ruby$ rbeautify mail.rb 
> require 'yaml'
> require 'net/imap'
> require 'mail'
> 
> 2.times do
>   puts 'hello world'
> end
> 
> thufir at dur:~/ruby$ 
> 
> However, it doesn't change the underlying file, you have to pipe to the 
> file (I presume).  Reading the doc's.

Tip: use the Custom Commands, not the Build Commands.

> 
> 
> https://rubygems.org/gems/ruby-beautify
> 
> 
> 
> -Thufir
> 
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
> 



More information about the Users mailing list