File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -3310,11 +3310,11 @@ resource cleanup when possible.
3310
3310
3311
3311
```Ruby
3312
3312
timestamp = Time.now.to_i
3313
-
3313
+
3314
3314
# bad
3315
3315
timestamp.is_a? Fixnum
3316
3316
timestamp.is_a? Bignum
3317
-
3317
+
3318
3318
# good
3319
3319
timestamp.is_a? Integer
3320
3320
```
@@ -3337,18 +3337,6 @@ resource cleanup when possible.
3337
3337
email_with_name = format('%s <%s>', user.name, user.email)
3338
3338
```
3339
3339
3340
- * <a name="pad-string-interpolation"></a>
3341
- With interpolated expressions, there should be no padded-spacing inside the braces.
3342
- <sup>[[link](#pad-string-interpolation)]</sup>
3343
-
3344
- ```Ruby
3345
- # bad
3346
- "From: #{ user.first_name }, #{ user.last_name }"
3347
-
3348
- # good
3349
- "From: #{user.first_name}, #{user.last_name}"
3350
- ```
3351
-
3352
3340
* <a name="consistent-string-literals"></a>
3353
3341
Adopt a consistent string literal quoting style. There are two popular
3354
3342
styles in the Ruby community, both of which are considered good - single
You can’t perform that action at this time.
0 commit comments