Class: Rproof::Assertion
- Inherits:
-
LocatedInfo
- Object
- LocatedInfo
- Rproof::Assertion
- Defined in:
- lib/rproof/assertion.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#is_successful ⇒ Object
readonly
Returns the value of attribute is_successful.
-
#obtained ⇒ Object
readonly
Returns the value of attribute obtained.
Attributes inherited from LocatedInfo
#file, #line, #method, #pathname
Instance Method Summary collapse
-
#initialize(expected, obtained, is_successful, comment) ⇒ Assertion
constructor
A new instance of Assertion.
Constructor Details
#initialize(expected, obtained, is_successful, comment) ⇒ Assertion
Returns a new instance of Assertion.
9 10 11 12 13 14 15 |
# File 'lib/rproof/assertion.rb', line 9 def initialize(expected, obtained, is_successful, comment) super() @expected = expected @obtained = obtained @is_successful = is_successful @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
16 17 18 |
# File 'lib/rproof/assertion.rb', line 16 def comment @comment end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
16 17 18 |
# File 'lib/rproof/assertion.rb', line 16 def expected @expected end |
#is_successful ⇒ Object (readonly)
Returns the value of attribute is_successful.
16 17 18 |
# File 'lib/rproof/assertion.rb', line 16 def is_successful @is_successful end |
#obtained ⇒ Object (readonly)
Returns the value of attribute obtained.
16 17 18 |
# File 'lib/rproof/assertion.rb', line 16 def obtained @obtained end |