Sha256: 5157b3b11939121c4924123426fb9a678ce79abe508a91c6855a530a5e33bd59

Contents?: true

Size: 561 Bytes

Versions: 29

Compression:

Stored size: 561 Bytes

Contents

module Bmg
  module Relation
    class InMemory
      include Relation

      def initialize(type, operand)
        @operand = operand
        @type = type
      end
      attr_accessor :type
      protected :type=
      attr_reader :operand

    public

      def each(&bl)
        @operand.each(&bl)
      end

      def to_ast
        [ :in_memory, operand ]
      end

      def to_s
        "(in_memory ...)"
      end

      def inspect
        "(in_memory #{operand.inspect})"
      end

    end # class InMemory
  end # module Relation
end # module Bmg

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bmg-0.18.1 lib/bmg/relation/in_memory.rb
bmg-0.18.0 lib/bmg/relation/in_memory.rb
bmg-0.17.8 lib/bmg/relation/in_memory.rb
bmg-0.17.7 lib/bmg/relation/in_memory.rb
bmg-0.17.6 lib/bmg/relation/in_memory.rb
bmg-0.17.5 lib/bmg/relation/in_memory.rb
bmg-0.17.4 lib/bmg/relation/in_memory.rb
bmg-0.17.3 lib/bmg/relation/in_memory.rb
bmg-0.17.2 lib/bmg/relation/in_memory.rb
bmg-0.16.7 lib/bmg/relation/in_memory.rb
bmg-0.17.1 lib/bmg/relation/in_memory.rb
bmg-0.17.0 lib/bmg/relation/in_memory.rb
bmg-0.16.6 lib/bmg/relation/in_memory.rb
bmg-0.16.5 lib/bmg/relation/in_memory.rb
bmg-0.16.4 lib/bmg/relation/in_memory.rb
bmg-0.16.3 lib/bmg/relation/in_memory.rb
bmg-0.16.2 lib/bmg/relation/in_memory.rb
bmg-0.16.1 lib/bmg/relation/in_memory.rb
bmg-0.16.0 lib/bmg/relation/in_memory.rb
bmg-0.16.0.pre.rc2 lib/bmg/relation/in_memory.rb