Method: ThinkingSphinx::Index::FauxColumn#is_string?

Defined in:
lib/thinking_sphinx/index/faux_column.rb

#is_string?Boolean

Returns true if the stack is empty and if the name is a string - which is an indication that of raw SQL, as opposed to a value from a table’s column.

Returns:

  • (Boolean)


53
54
55
# File 'lib/thinking_sphinx/index/faux_column.rb', line 53

def is_string?
  @name.is_a?(String) && @stack.empty?
end