Class: MiniTest::Descriptive::DescriptiveValue
- Inherits:
-
Struct
- Object
- Struct
- MiniTest::Descriptive::DescriptiveValue
- Defined in:
- lib/minitest-descriptive.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/minitest-descriptive.rb', line 5 def name @name end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/minitest-descriptive.rb', line 5 def value @value end |
Instance Method Details
#inspect ⇒ Object
6 7 8 |
# File 'lib/minitest-descriptive.rb', line 6 def inspect "#{value.inspect} (#{name})" end |