Class: MiniTest::Descriptive::DescriptiveValue

Inherits:
Struct
  • Object
show all
Defined in:
lib/minitest-descriptive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/minitest-descriptive.rb', line 5

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



5
6
7
# File 'lib/minitest-descriptive.rb', line 5

def value
  @value
end

Instance Method Details

#inspectObject



6
7
8
# File 'lib/minitest-descriptive.rb', line 6

def inspect
  "#{value.inspect} (#{name})"
end