Sha256: ee1908f979f115974bc9c95091dfde5e12b5e0ccc14a67819fc7f087e9eabdd8
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
# Perfect spacing around ternary colon bobo = true ? true : false # No space after ternary colon bobo = true ? true :false # No space before ternary colon bobo = true ? true: false # No space before or after ternary colon bobo = true ? true:false # 2 spaces after ternary colon bobo = true ? true : false # 2 spaces before ternary colon bobo = true ? true : false # Skip when colon is part of a symbol or namespace operator bobo = { thing: ":clown" } bobo[:thing] == :dog ? bobo[:thing] : Math::PI # Skip when colon is part of Regexp class bobo[:thing].scan(/[:alpha:]/) # Skip when setting load path $:.unshift File.dirname(__FILE__) # Skip when question mark method is followed by a symbol if bobo[:thing].eql? :clown end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tailor-1.4.1 | features/support/legacy/bad_ternary_colon_spacing.rb |
tailor-1.4.0 | features/support/legacy/bad_ternary_colon_spacing.rb |