Sha256: 36bf00cc2803b42668beee1f1fd59c60b9d4e14dc1d3ae87f7ee7bbd0f3fac83

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true

module Gamefic
  module Scope
    # A query scope that can only match the entity's parent.
    #
    class Parent < Base
      def matches
        [context.parent].compact
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gamefic-3.6.0 lib/gamefic/scope/parent.rb
gamefic-3.5.0 lib/gamefic/scope/parent.rb
gamefic-3.4.0 lib/gamefic/scope/parent.rb
gamefic-3.3.0 lib/gamefic/scope/parent.rb
gamefic-3.2.1 lib/gamefic/scope/parent.rb
gamefic-3.2.0 lib/gamefic/scope/parent.rb
gamefic-3.1.0 lib/gamefic/scope/parent.rb
gamefic-3.0.0 lib/gamefic/scope/parent.rb