Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/qed/core_ext.rb
Instance Method Summary collapse
-
#must_return(value) ⇒ Object
This is used by the ‘#=>` notation.
Instance Method Details
#must_return(value) ⇒ Object
This is used by the ‘#=>` notation.
8 9 10 |
# File 'lib/qed/core_ext.rb', line 8 def must_return(value) assert(self == value, "#{self.inspect} #=> #{value.inspect}") end |