Class: ASAutotest::Member

Inherits:
Object
  • Object
show all
Extended by:
Bracketable
Defined in:
lib/asautotest/problematic-file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Bracketable

[]

Constructor Details

#initialize(type, name) ⇒ Member

Returns a new instance of Member.



150
151
152
153
# File 'lib/asautotest/problematic-file.rb', line 150

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



148
149
150
# File 'lib/asautotest/problematic-file.rb', line 148

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



148
149
150
# File 'lib/asautotest/problematic-file.rb', line 148

def type
  @type
end

Instance Method Details

#to_sObject



155
156
157
# File 'lib/asautotest/problematic-file.rb', line 155

def to_s
  @type ? "#{@type.name}.#@name" : "#@name"
end