lib/grumlin/shortcuts/properties.rb in grumlin-0.13.1 vs lib/grumlin/shortcuts/properties.rb in grumlin-0.14.0
- old
+ new
@@ -3,16 +3,16 @@
module Grumlin
module Shortcuts
module Properties
extend Grumlin::Shortcuts
- shortcut :props do |props = {}|
+ shortcut :props do |*_args, **props|
props.reduce(self) do |tt, (prop, value)|
tt.property(prop, value)
end
end
- shortcut :hasAll do |props = {}|
+ shortcut :hasAll do |*, **props|
props.reduce(self) do |tt, (prop, value)|
tt.has(prop, value)
end
end
end