Sha256: 5d907cc1adf11e669e51c1f63f8949953d3e7f3ed7efff8ce62defc9174602ca
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
# Blocks... # No space after { 1..10.times {|number| puts number } # No space before { 1..10.times{ |number| puts number } # No space before or after { 1..10.times{|number| puts number } # No space before } 1..10.times { |number| puts number} # No space before or after { and } 1..10.times{|number| puts number} # >1 space before { 1..10.times { |number| puts number } # >1 space after { 1..10.times { |number| puts number } # >1 space before, no spaces after { 1..10.times {|number| puts number } # >1 space after, no spaces before { 1..10.times{ |number| puts number } # >1 space before } 1..10.times { |number| puts number } # Perfect 1..10.times { |number| puts number } # Hashes... # No space after { thing = {:one => 1 } # No space before { thing ={ :one => 1 } # No space before or after { thing ={:one => 1 } # No space before } thing = { :one => 1} # No space before or after { and } thing ={:one => 1} # Perfect thing = { :one => 1 } # Skip on default params in methods... def a_method; one={}; end # Skip on strings... a_string = "This is a #{thing}..." b_string = "This has #{Class.methods}"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailor-0.1.5 | features/support/1_file_with_bad_curly_brace_spacing/bad_curly_brace_spacing.rb |
tailor-0.1.4 | features/support/1_file_with_bad_curly_brace_spacing/bad_curly_brace_spacing.rb |