Class: ASAutotest::Member
- Inherits:
-
Object
- Object
- ASAutotest::Member
- Extended by:
- Bracketable
- Defined in:
- lib/asautotest/problematic-file.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, name) ⇒ Member
constructor
A new instance of Member.
- #to_s ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
148 149 150 |
# File 'lib/asautotest/problematic-file.rb', line 148 def name @name end |
#type ⇒ Object (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_s ⇒ Object
155 156 157 |
# File 'lib/asautotest/problematic-file.rb', line 155 def to_s @type ? "#{@type.name}.#@name" : "#@name" end |