Class: Gizzard::Transformation::Op::BaseOp
- Inherits:
-
Object
- Object
- Gizzard::Transformation::Op::BaseOp
show all
- Defined in:
- lib/gizzard/transformation_op.rb
Instance Method Summary
collapse
Instance Method Details
#eql?(other) ⇒ Boolean
Also known as:
==
8
9
10
|
# File 'lib/gizzard/transformation_op.rb', line 8
def eql?(other)
self.class == other.class
end
|
#inspect ⇒ Object
14
15
16
17
18
|
# File 'lib/gizzard/transformation_op.rb', line 14
def inspect
templates = (is_a?(LinkOp) ? [from, to] : [*template]).map {|t| t.identifier }.join(" -> ")
name = Transformation::OP_NAMES[self.class]
"#{name}(#{templates})"
end
|
#inverse?(other) ⇒ Boolean
4
5
6
|
# File 'lib/gizzard/transformation_op.rb', line 4
def inverse?(other)
Transformation::OP_INVERSES[self.class] == other.class
end
|
#involved_shards(table_prefix, translations) ⇒ Object
24
25
26
|
# File 'lib/gizzard/transformation_op.rb', line 24
def involved_shards(table_prefix, translations)
[]
end
|