class ActiveGraph::Core::QueryClauses::ReturnClause
Constants
- KEYWORD
Public Class Methods
clause_join()
click to toggle source
# File lib/active_graph/core/query_clauses.rb 720 def clause_join 721 Clause::COMMA_SPACE 722 end
clause_strings(clauses)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 716 def clause_strings(clauses) 717 clauses.map!(&:value) 718 end
Public Instance Methods
from_key_and_value(key, value)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 702 def from_key_and_value(key, value) 703 case value 704 when Array 705 value.map do |v| 706 from_key_and_value(key, v) 707 end.join(Clause::COMMA_SPACE) 708 when String, Symbol 709 self.class.from_key_and_single_value(key, value) 710 else 711 fail ArgError, value 712 end 713 end
from_symbol(value)
click to toggle source
# File lib/active_graph/core/query_clauses.rb 698 def from_symbol(value) 699 from_string(value.to_s) 700 end