class OCG::Operator::Abstract

Constants

VARIABLES_TO_COPY

Public Class Methods

new(left_generator_or_options, right_generator_or_options) click to toggle source
# File lib/ocg/operator/abstract.rb, line 11
def initialize(left_generator_or_options, right_generator_or_options) # rubocop:disable Lint/MissingSuper
  @left_generator  = OCG.prepare_generator left_generator_or_options
  @right_generator = OCG.prepare_generator right_generator_or_options

  reset
end

Public Instance Methods

finished?() click to toggle source
# File lib/ocg/operator/abstract.rb, line 38
def finished?
  raise NotImplementedError, "\"finished?\" is not implemented"
end
last() click to toggle source
# File lib/ocg/operator/abstract.rb, line 30
def last
  raise NotImplementedError, "\"last\" is not implemented"
end
length() click to toggle source
# File lib/ocg/operator/abstract.rb, line 42
def length
  raise NotImplementedError, "\"length\" is not implemented"
end
next() click to toggle source

:nocov:

# File lib/ocg/operator/abstract.rb, line 26
def next
  raise NotImplementedError, "\"next\" is not implemented"
end
reset() click to toggle source
# File lib/ocg/operator/abstract.rb, line 18
def reset
  @left_generator.reset
  @right_generator.reset

  nil
end
started?() click to toggle source
# File lib/ocg/operator/abstract.rb, line 34
def started?
  raise NotImplementedError, "\"started?\" is not implemented"
end