Sha256: 6db587eda07a0a19776c04ae7758749fdeb4a3b06e69caf314abc054741f02e9

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Shortcuts
    module Properties
      extend Grumlin::Shortcuts

      shortcut :props do |props = {}|
        props.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.13.1 lib/grumlin/shortcuts/properties.rb
grumlin-0.13.0 lib/grumlin/shortcuts/properties.rb