[Geany-Users] beautify-ruby-code-with-geany
thufir
hawat.thufir at gmail.com
Sun Dec 23 20:26:27 UTC 2012
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.
https://rubygems.org/gems/ruby-beautify
-Thufir
More information about the Users
mailing list