# File lib/thinking_sphinx/active_record/column.rb, line 2 def initialize(*stack) @stack = stack @name = stack.pop end
# File lib/thinking_sphinx/active_record/column.rb, line 7 def __name @name end
# File lib/thinking_sphinx/active_record/column.rb, line 11 def __path @stack + [@name] end
# File lib/thinking_sphinx/active_record/column.rb, line 15 def __replace(stack, replacements) return [self] if string? || __stack[0..stack.length-1] != stack replacements.collect { |replacement| self.class.new *(replacement + __stack[stack.length..-1]), __name } end
# File lib/thinking_sphinx/active_record/column.rb, line 23 def __stack @stack end
# File lib/thinking_sphinx/active_record/column.rb, line 27 def string? __name.is_a?(String) end
# File lib/thinking_sphinx/active_record/column.rb, line 31 def to_ary [self] end
# File lib/thinking_sphinx/active_record/column.rb, line 37 def method_missing(method, *args, &block) @stack << @name @name = method self end