Sha256: f0c688fb80691a697c8e4ede267140249669c3c70ce665a12f7c1bc08bdb663c

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module Pacer
  module Titan
    # hack to make indexing work:
    class FeatureProxy
      def initialize original_features 
        @features = original_features 
      end
      
      def supportsIndices
        true
      end
      
      def method_missing(name, *args, &block)
        @features.public_send(name, *args, &block) 
      end
    end
    
    class Graph < PacerGraph
      def features
        FeatureProxy.new(blueprints_graph.features)
      end 
      
      def indices
        key_indices
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pacer-titan-0.0.1-java lib/pacer-titan/graph.rb