Sha256: 55ec6c3358bf01815c0e1da92061a1a20c6c6e4f80a1dba4b943d47ad642886c

Contents?: true

Size: 272 Bytes

Versions: 14

Compression:

Stored size: 272 Bytes

Contents

module Gamefic
  module Query
    class Siblings < Base
      def context_from(subject)
        result = []
        unless subject.parent.nil?
          result.concat(subject.parent.children - [subject])
        end
        result
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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