mikeyhew / shopify-app-templates

A collection of Rails templates for creating Shopify apps
5 stars 2 forks source link

No need for deindent method since ruby 2.3 #5

Closed vfonic closed 5 years ago

vfonic commented 6 years ago

Not really a big issue... :)

but you can use <<~ to deindent the code.

https://infinum.co/the-capsized-eight/multiline-strings-ruby-2-3-0-the-squiggly-heredoc

https://github.com/mikeyhew/shopify-app-templates/blob/master/polaris-rails.rb

mikeyhew commented 6 years ago

@vfonic thanks for the suggestion! I had no idea that existed when I wrote that code, and was pretty annoyed that it had to be so complicated. I'll change it later when I'm editing that code again.

mikeyhew commented 5 years ago

Thanks for the feedback. The code I wrote in #7 uses <<~ and it's so much better :)

vfonic commented 5 years ago

Awesome! Thanks for getting back on this issue!

Take care.