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