mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ensure codeblocks are rendered as such for (min|max)imum
Make indentation consistent for all codeblocks in file. [ci-skip]
This commit is contained in:
parent
2b05b25809
commit
53ede786fc
1 changed files with 24 additions and 24 deletions
|
@ -214,7 +214,7 @@ module Enumerable
|
||||||
# When called on a +Hash+, returns a new +Hash+ without the blank values.
|
# When called on a +Hash+, returns a new +Hash+ without the blank values.
|
||||||
#
|
#
|
||||||
# { a: "", b: 1, c: nil, d: [], e: false, f: true }.compact_blank
|
# { a: "", b: 1, c: nil, d: [], e: false, f: true }.compact_blank
|
||||||
# #=> { b: 1, f: true }
|
# # => { b: 1, f: true }
|
||||||
def compact_blank
|
def compact_blank
|
||||||
reject(&:blank?)
|
reject(&:blank?)
|
||||||
end
|
end
|
||||||
|
@ -223,7 +223,7 @@ module Enumerable
|
||||||
# objects in the original enumerable.
|
# objects in the original enumerable.
|
||||||
#
|
#
|
||||||
# [ Person.find(5), Person.find(3), Person.find(1) ].in_order_of(:id, [ 1, 5, 3 ])
|
# [ Person.find(5), Person.find(3), Person.find(1) ].in_order_of(:id, [ 1, 5, 3 ])
|
||||||
# => [ Person.find(1), Person.find(5), Person.find(3) ]
|
# # => [ Person.find(1), Person.find(5), Person.find(3) ]
|
||||||
#
|
#
|
||||||
# If the +series+ include keys that have no corresponding element in the Enumerable, these are ignored.
|
# If the +series+ include keys that have no corresponding element in the Enumerable, these are ignored.
|
||||||
# If the Enumerable has additional elements that aren't named in the +series+, these are not included in the result.
|
# If the Enumerable has additional elements that aren't named in the +series+, these are not included in the result.
|
||||||
|
|
Loading…
Reference in a new issue