You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a pity, BeautifyRuby does not leave here_docs untouched. This makes BeautifyRuby hard to use in this case.
Example:
moduleFOOdeffooconfig=<<-eos### This file is authorization file for #{@project_name}.# do not remove * = at [/][groups]observer=developer=#{@project_admin_user}[/]@observer=r@developer=rw* = eosendend```
convertsto```ruby
module FOO
def foo
config =<<-eos
### This file is authorization file for #{@project_name}.
# do not remove * = at [/]
[groups]
observer=
developer=#{@project_admin_user}[/]@observer=r@developer=rw
* =eosendend
or this example
template=%{ <html> <head><title>Ruby Toys -- <%= @name %></title></head> <body> <h1><%= @name %> (<%= @code %>)</h1> <p><%= @desc %></p> <ul> <% @features.each do |f| %> <li><b><%= f %></b></li> <% end %> </ul> <p> <% if @cost < 10 %> <b>Only <%= @cost %>!!!</b> <% else %> Call for a price, today! <% end %> </p> </body> </html>}.gsub(/^ /,'')
is converted to
template=%{ <html> <head><title>Ruby Toys -- <%= @name %></title></head> <body> <h1><%= @name %> (<%= @code %>)</h1> <p><%= @desc %></p> <ul> <% @features.each do |f| %> <li><b><%= f %></b></li> <% end %> </ul> <p> <% if @cost < 10 %> <b>Only <%= @cost %>!!!</b> <% else %> Call for a price, today! <% end %> </p> </body> </html>}.gsub(/^ /,'')
The text was updated successfully, but these errors were encountered:
As a pity, BeautifyRuby does not leave here_docs untouched. This makes BeautifyRuby hard to use in this case.
Example:
or this example
is converted to
The text was updated successfully, but these errors were encountered: