Class: AgnosticBackend::Queryable::Expressions::ScrollCursor

Inherits:
Expression show all
Defined in:
lib/agnostic_backend/queryable/expressions/expression.rb

Instance Attribute Summary

Attributes inherited from TreeNode

#children, #context

Instance Method Summary collapse

Methods inherited from TreeNode

#==, #accept

Methods included from Utilities

included

Constructor Details

#initialize(value:, context:) ⇒ ScrollCursor

Returns a new instance of ScrollCursor.



65
66
67
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 65

def initialize(value:, context:)
  super([Value.new(value, parent: self, context: context)], context)
end

Instance Method Details

#scroll_cursorObject



69
70
71
# File 'lib/agnostic_backend/queryable/expressions/expression.rb', line 69

def scroll_cursor
  children.first
end