Method: OrientSupport::OrientQuery#initialize
- Defined in:
- lib/support/orientquery.rb
#initialize(**args) ⇒ OrientQuery
Returns a new instance of OrientQuery.
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/support/orientquery.rb', line 334 def initialize **args @q = QueryAttributes.new args[:kind] || 'select' , [], # :projection [], # :where , [], # :let , [], # :order, [], # :while, [] , # misc '', # class '', # return [], # aliases '', # database [], #set, [] # remove args.each{|k,v| send k, v} @fill = block_given? ? yield : 'and' end |