Sha256: de02ad3c9f54e04b2a432337007f225b2dbe5bbc00eac617bdc3be20d5755127

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 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 class?
            "@type": "g:P",
            "@value": { predicate: "within", value: { "@type": "g:List", "@value": args } }
          }
        end
      end
    end

    extend P
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grumlin-0.5.1 lib/grumlin/p.rb
grumlin-0.5.0 lib/grumlin/p.rb
grumlin-0.4.0 lib/grumlin/p.rb
grumlin-0.3.0 lib/grumlin/p.rb
grumlin-0.2.0 lib/grumlin/p.rb