Class: YardExampleTest::Expectation

Inherits:
Data
  • Object
show all
Defined in:
lib/yard_example_test/expectation.rb,
lib/yard_example_test/expectation.rb

Overview

Represents a single expected outcome parsed from a YARD +@example+ tag

Each instance holds the Ruby expression to evaluate (+actual+) and the string representation of the value it should return (+expected+). When +expected+ is +nil+, the expression is evaluated for side-effects only and no assertion is made against its return value.

Instance Attribute Summary collapse

Instance Attribute Details

#actualString (readonly)

the Ruby expression to evaluate

Examples:

blah


22
# File 'lib/yard_example_test/expectation.rb', line 22

class Expectation < Data; end

#expectedObject (readonly)

Returns the value of attribute expected



22
# File 'lib/yard_example_test/expectation.rb', line 22

class Expectation < Data; end