class ActiveGraph::Core::QueryClauses::RemoveClause
Constants
- KEYWORD
Public Class Methods
clause_join()
click to toggle source
# File lib/active_graph/core/query_clauses.rb 664 def clause_join 665 Clause::COMMA_SPACE 666 end
clause_strings(clauses)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 660 def clause_strings(clauses) 661 clauses.map!(&:value) 662 end
Public Instance Methods
from_key_and_value(key, value)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 642 def from_key_and_value(key, value) 643 case value 644 when /^:/ 645 "#{key}:`#{value[1..-1]}`" 646 when String 647 "#{key}.#{value}" 648 when Symbol 649 "#{key}:`#{value}`" 650 when Array 651 value.map do |v| 652 from_key_and_value(key, v) 653 end 654 else 655 fail ArgError, value 656 end 657 end