Class: ASAutotest::Type
- Inherits:
-
Object
- Object
- ASAutotest::Type
- Extended by:
- Bracketable
- Defined in:
- lib/asautotest/problematic-file.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#package ⇒ Object
readonly
Returns the value of attribute package.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
- #full_name ⇒ Object
-
#initialize(package, name) ⇒ Type
constructor
A new instance of Type.
- #to_s ⇒ Object
Methods included from Bracketable
Constructor Details
#initialize(package, name) ⇒ Type
Returns a new instance of Type.
119 120 121 122 |
# File 'lib/asautotest/problematic-file.rb', line 119 def initialize(package, name) @package = package @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
118 119 120 |
# File 'lib/asautotest/problematic-file.rb', line 118 def name @name end |
#package ⇒ Object (readonly)
Returns the value of attribute package.
118 119 120 |
# File 'lib/asautotest/problematic-file.rb', line 118 def package @package end |
Class Method Details
Instance Method Details
#==(other) ⇒ Object
141 142 143 |
# File 'lib/asautotest/problematic-file.rb', line 141 def == other package == other.package and name == other.name end |
#full_name ⇒ Object
137 138 139 |
# File 'lib/asautotest/problematic-file.rb', line 137 def full_name "#{package}.#{name}" end |
#to_s ⇒ Object
133 134 135 |
# File 'lib/asautotest/problematic-file.rb', line 133 def to_s name ? name : package end |