Skip to content

Commit

Permalink
Prefer single-quoted strings when you don't need string interpolation…
Browse files Browse the repository at this point in the history
… or special symbols
  • Loading branch information
sferik committed Jan 16, 2016
1 parent cfd3ce7 commit 1064595
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etc/erd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def puts(string)
puts 'digraph classes {'
# Add or remove DOT formatting options here
indent do
puts "graph [rotate=0, rankdir=\"LR\"]"
puts "node [fillcolor=\"#c4ddec\", style=\"filled\", fontname=\"Helvetica Neue\"]"
puts "edge [color=\"#444444\"]"
puts 'graph [rotate=0, rankdir="LR"]'
puts 'node [fillcolor="#c4ddec", style="filled", fontname="Helvetica Neue"]'
puts 'edge [color="#444444"]'
nodes.sort.each do |node, label|
puts "#{node} [label=\"#{label}\"]"
end
Expand Down

0 comments on commit 1064595

Please sign in to comment.