lib/grumlin/shortcuts/properties.rb in grumlin-0.18.1 vs lib/grumlin/shortcuts/properties.rb in grumlin-0.19.0

- old
+ new

@@ -4,11 +4,13 @@ module Shortcuts module Properties extend Grumlin::Shortcuts shortcut :props do |**props| - props.compact.reduce(self) do |tt, (prop, value)| - tt.property(prop, value) + props.reduce(self) do |tt, (prop, value)| # rubocop:disable Style/EachWithObject + next tt.property(prop, value) unless value.nil? # nils are not supported + + tt end end shortcut :hasAll do |**props| props.reduce(self) do |tt, (prop, value)|