Class: AdLint::Cc1::UnsignedTypeId

Inherits:
StandardTypeId show all
Defined in:
lib/adlint/cc1/type.rb

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeUnsignedTypeId

Returns a new instance of UnsignedTypeId.



4242
4243
4244
# File 'lib/adlint/cc1/type.rb', line 4242

def initialize
  super("unsigned")
end

Instance Method Details

#==(rhs_id) ⇒ Object



4246
4247
4248
4249
4250
4251
4252
4253
# File 'lib/adlint/cc1/type.rb', line 4246

def ==(rhs_id)
  case rhs_id
  when UnsignedTypeId, UnsignedIntTypeId
    true
  else
    false
  end
end