Class: AdLint::Cc1::Member

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Member



6686
6687
6688
6689
# File 'lib/adlint/cc1/type.rb', line 6686

def initialize(name, type)
  @name = name
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6691
6692
6693
# File 'lib/adlint/cc1/type.rb', line 6691

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



6692
6693
6694
# File 'lib/adlint/cc1/type.rb', line 6692

def type
  @type
end

Instance Method Details

#dupObject



6694
6695
6696
# File 'lib/adlint/cc1/type.rb', line 6694

def dup
  Member.new(@name, @type.dup)
end