Sha256: 7c5437883f4f7de4a4b555387872f7c5b2d1f55e27f0b4827d0db2ddc8ea7969

Contents?: true

Size: 373 Bytes

Versions: 8

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  module P
    module P
      %w[within].each do |step|
        define_method step do |*args|
          { # TODO: replace with a TypedValue?
            "@type": "g:P",
            "@value": { predicate: "within", value: { "@type": "g:List", "@value": args } }
          }
        end
      end
    end

    extend P
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grumlin-0.10.1 lib/grumlin/p.rb
grumlin-0.10.0 lib/grumlin/p.rb
grumlin-0.9.0 lib/grumlin/p.rb
grumlin-0.8.0 lib/grumlin/p.rb
grumlin-0.7.0 lib/grumlin/p.rb
grumlin-0.6.2 lib/grumlin/p.rb
grumlin-0.6.1 lib/grumlin/p.rb
grumlin-0.6.0 lib/grumlin/p.rb