Sha256: 0cc8021062d9d63e16695067d479f886583d2f0ae85288450c2ab6ef9ba74307
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module Grumlin module Shortcuts module Properties extend Grumlin::Shortcuts shortcut :props do |**props| props.compact.reduce(self) do |tt, (prop, value)| tt.property(prop, value) end end shortcut :hasAll do |**props| props.reduce(self) do |tt, (prop, value)| tt.has(prop, value) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grumlin-0.18.1 | lib/grumlin/shortcuts/properties.rb |
grumlin-0.18.0 | lib/grumlin/shortcuts/properties.rb |