DEV: Apply syntax_tree formatting to lib/*

This commit is contained in:
David Taylor
2023-01-09 12:10:19 +00:00
parent b0fda61a8e
commit 6417173082
507 changed files with 16550 additions and 12627 deletions

View File

@ -43,15 +43,11 @@ class Enum < Hash
# Public: Create a subset of enum, only include specified keys.
def only(*keys)
dup.tap do |d|
d.keep_if { |k| keys.include?(k) }
end
dup.tap { |d| d.keep_if { |k| keys.include?(k) } }
end
# Public: Create a subset of enum, preserve all items but specified ones.
def except(*keys)
dup.tap do |d|
d.delete_if { |k| keys.include?(k) }
end
dup.tap { |d| d.delete_if { |k| keys.include?(k) } }
end
end