Fix RuboCop Style/SelectByKind and Style/PredicateWithKind offenses
All checks were successful
CI Pipeline / build (pull_request) Successful in 1m8s

This commit is contained in:
2026-03-05 13:43:15 +01:00
parent 26e0d59cf1
commit e937552913
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ module Notare
end end
def lists def lists
@nodes.select { |n| n.is_a?(Nodes::List) } @nodes.grep(Nodes::List)
end end
def uses_lists? def uses_lists?

View File

@@ -69,6 +69,6 @@ class DocumentTest < Minitest::Test
doc.table { doc.tr { doc.td "Cell" } } doc.table { doc.tr { doc.td "Cell" } }
assert_equal 2, doc.lists.count assert_equal 2, doc.lists.count
assert(doc.lists.all? { |l| l.is_a?(Notare::Nodes::List) }) assert(doc.lists.all?(Notare::Nodes::List))
end end
end end