Sha256: 8da9adcd1f4b2f85333fe438878452bb7437a48732d7fc861264e727ee0b98a4

Contents?: true

Size: 1.1 KB

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
tailor-0.1.3 features/support/1_file_with_bad_curly_brace_spacing/bad_curly_brace_spacing.rb
tailor-0.1.2 features/support/1_file_with_bad_curly_brace_spacing/bad_curly_brace_spacing.rb
tailor-0.1.1 features/support/1_file_with_bad_curly_brace_spacing/bad_curly_brace_spacing.rb
tailor-0.1.0 features/support/1_file_with_bad_curly_brace_spacing/bad_curly_brace_spacing.rb