Class: Rproof::Assertion

Inherits:
LocatedInfo show all
Defined in:
lib/rproof/assertion.rb

Instance Attribute Summary collapse

Attributes inherited from LocatedInfo

#file, #line, #method, #pathname

Instance Method Summary collapse

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

#commentObject (readonly)

Returns the value of attribute comment.



16
17
18
# File 'lib/rproof/assertion.rb', line 16

def comment
  @comment
end

#expectedObject (readonly)

Returns the value of attribute expected.



16
17
18
# File 'lib/rproof/assertion.rb', line 16

def expected
  @expected
end

#is_successfulObject (readonly)

Returns the value of attribute is_successful.



16
17
18
# File 'lib/rproof/assertion.rb', line 16

def is_successful
  @is_successful
end

#obtainedObject (readonly)

Returns the value of attribute obtained.



16
17
18
# File 'lib/rproof/assertion.rb', line 16

def obtained
  @obtained
end