Sha256: 72a54488436c9c4df309752542f52f5538177de45953811855a9a3be7cb6598c
Contents?: true
Size: 885 Bytes
Versions: 5
Compression:
Stored size: 885 Bytes
Contents
module Indexed # # class Index attr_reader :name, :result_identifier, :combinator, :categories delegate :load_from_cache, :to => :categories def initialize name, options = {} @name = name @result_identifier = options[:result_identifier] || name ignore_unassigned_tokens = options[:ignore_unassigned_tokens] || false # TODO Move to query, somehow. @categories = Categories.new ignore_unassigned_tokens: ignore_unassigned_tokens end # TODO Spec. Doc. # def define_category category_name, options = {} new_category = Category.new category_name, self, options categories << new_category new_category end # # def possible_combinations token categories.possible_combinations_for token end end end
Version data entries
5 entries across 5 versions & 1 rubygems