Sha256: acc554e4910e11adcaca01f286e8d084f181b15989725e4f2784a7c040edd6bd

Contents?: true

Size: 430 Bytes

Versions: 12

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module Shortcuts
    module Properties
      extend Grumlin::Shortcuts

      shortcut :props do |*_args, **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

12 entries across 12 versions & 1 rubygems

Version Path
grumlin-0.15.6 lib/grumlin/shortcuts/properties.rb
grumlin-0.15.4 lib/grumlin/shortcuts/properties.rb
grumlin-0.15.3 lib/grumlin/shortcuts/properties.rb
grumlin-0.15.2 lib/grumlin/shortcuts/properties.rb
grumlin-0.15.1 lib/grumlin/shortcuts/properties.rb
grumlin-0.15.0 lib/grumlin/shortcuts/properties.rb
grumlin-0.14.5 lib/grumlin/shortcuts/properties.rb
grumlin-0.14.4 lib/grumlin/shortcuts/properties.rb
grumlin-0.14.3 lib/grumlin/shortcuts/properties.rb
grumlin-0.14.2 lib/grumlin/shortcuts/properties.rb
grumlin-0.14.1 lib/grumlin/shortcuts/properties.rb
grumlin-0.14.0 lib/grumlin/shortcuts/properties.rb