Class: OCG::Operator::Abstract
- Inherits:
-
OCG
- Object
- OCG
- OCG::Operator::Abstract
show all
- Defined in:
- lib/ocg/operator/abstract.rb
Constant Summary
Constants inherited
from OCG
DELEGATORS, VERSION
Instance Method Summary
collapse
Methods inherited from OCG
#and, #mix, #or, prepare_generator, #to_a
Constructor Details
#initialize(left_generator_or_options, right_generator_or_options) ⇒ Abstract
Returns a new instance of Abstract.
9
10
11
12
13
14
|
# File 'lib/ocg/operator/abstract.rb', line 9
def initialize(left_generator_or_options, right_generator_or_options)
@left_generator = OCG.prepare_generator left_generator_or_options
@right_generator = OCG.prepare_generator right_generator_or_options
reset
end
|
Instance Method Details
#finished? ⇒ Boolean
36
37
38
|
# File 'lib/ocg/operator/abstract.rb', line 36
def finished?
raise NotImplementedError, "\"finished?\" is not implemented"
end
|
#last ⇒ Object
28
29
30
|
# File 'lib/ocg/operator/abstract.rb', line 28
def last
raise NotImplementedError, "\"last\" is not implemented"
end
|
#length ⇒ Object
40
41
42
|
# File 'lib/ocg/operator/abstract.rb', line 40
def length
raise NotImplementedError, "\"length\" is not implemented"
end
|
#next ⇒ Object
24
25
26
|
# File 'lib/ocg/operator/abstract.rb', line 24
def next
raise NotImplementedError, "\"next\" is not implemented"
end
|
#reset ⇒ Object
16
17
18
19
20
21
|
# File 'lib/ocg/operator/abstract.rb', line 16
def reset
@left_generator.reset
@right_generator.reset
nil
end
|
#started? ⇒ Boolean
32
33
34
|
# File 'lib/ocg/operator/abstract.rb', line 32
def started?
raise NotImplementedError, "\"started?\" is not implemented"
end
|