Completed
Push — dev ( 73864e...ffd8f7 )
by Fike
38s
created

Any.eql?   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
1
# frozen_string_literal: true
2
3
module AMA
4
  module Entity
5
    class Mapper
6
      class Type
7
        # Used as a wildcard to pass anything through
8
        class Any < Type
9
          INSTANCE = new
10
11
          def hash
12
            self.class.hash
13
          end
14
15
          def eql?(other)
16
            other.is_a?(Type)
17
          end
18
19
          def to_s
20
            'Any type placeholder'
21
          end
22
        end
23
      end
24
    end
25
  end
26
end
27