Class: Yoda::ValueExpectation

Inherits:
Expectation show all
Defined in:
lib/yoda.rb

Direct Known Subclasses

Equality, InEquality

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ValueExpectation

Returns a new instance of ValueExpectation.



12
13
14
# File 'lib/yoda.rb', line 12

def initialize value
  self.value = value
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



11
12
13
# File 'lib/yoda.rb', line 11

def value
  @value
end