Sha256: 832b6f3894a3f36fa2f1e9a13b60fe735e81406ff7c62b0cbd9ed3f478f93cea

Contents?: true

Size: 245 Bytes

Versions: 14

Compression:

Stored size: 245 Bytes

Contents

module Gamefic
  module Query
    class Itself < Base
      def context_from(subject)
        [subject]
      end

      def include?(subject, object)
        return false unless accept?(object) and subject == object
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
gamefic-2.4.0 lib/gamefic/query/itself.rb
gamefic-2.3.0 lib/gamefic/query/itself.rb
gamefic-2.2.3 lib/gamefic/query/itself.rb
gamefic-2.2.2 lib/gamefic/query/itself.rb
gamefic-2.2.1 lib/gamefic/query/itself.rb
gamefic-2.2.0 lib/gamefic/query/itself.rb
gamefic-2.1.1 lib/gamefic/query/itself.rb
gamefic-2.1.0 lib/gamefic/query/itself.rb
gamefic-2.0.3 lib/gamefic/query/itself.rb
gamefic-2.0.2 lib/gamefic/query/itself.rb
gamefic-2.0.1 lib/gamefic/query/itself.rb
gamefic-2.0.0 lib/gamefic/query/itself.rb
gamefic-1.7.0 lib/gamefic/query/itself.rb
gamefic-1.6.0 lib/gamefic/query/itself.rb