Sha256: e8b0c9941996c48a73138bbbe2293c2338b27f597306d067dfff871cec2463b2

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

module Saxon
  module XDM
    module SequenceLike
      def sequence_enum
        raise NotImplementedError
      end

      def sequence_size
        raise NotImplementedError
      end

      def append(other)
        XDM::Value.create([self, other])
      end

      alias_method :<<, :append
      alias_method :+, :append
    end

    module ItemSequenceLike
      def sequence_enum
        [self].to_enum
      end

      def sequence_size
        1
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saxon-rb-0.4.0-java lib/saxon/xdm/sequence_like.rb