Class: AdLint::Cc1::TypeId
- Inherits:
-
Object
- Object
- AdLint::Cc1::TypeId
show all
- Defined in:
- lib/adlint/cc1/type.rb
Instance Method Summary
collapse
Constructor Details
#initialize(val) ⇒ TypeId
Returns a new instance of TypeId.
630
631
632
|
# File 'lib/adlint/cc1/type.rb', line 630
def initialize(val)
@value = val
end
|
Instance Method Details
#==(rhs_id) ⇒ Object
634
635
636
|
# File 'lib/adlint/cc1/type.rb', line 634
def ==(rhs_id)
@value == rhs_id.value
end
|
#eql?(rhs_id) ⇒ Boolean
638
639
640
|
# File 'lib/adlint/cc1/type.rb', line 638
def eql?(rhs_id)
self == rhs_id
end
|
642
643
644
|
# File 'lib/adlint/cc1/type.rb', line 642
def hash
@value.hash
end
|