Sha256: 23414b4b2e0936e012aca9129a12bcaf9db7578542dfa4601046c2511ee61ee0
Contents?: true
Size: 738 Bytes
Versions: 12
Compression:
Stored size: 738 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
12 entries across 12 versions & 1 rubygems