Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/lookout-3.0.rb
Overview
Adds keyword methods “to” and “not” and #to_lookout_expected for Objects.
Instance Method Summary collapse
-
#not ⇒ Lookout::Object::To
“not” keywords, such as “to”, that’ll then handle “receive”.
-
#to ⇒ Lookout::Object::To
“to” keywords, such as “receive”.
-
#to_lookout_expected ⇒ Lookout::Expected::Object
A wrapper around the receiver, making it an expected value.
Instance Method Details
#not ⇒ Lookout::Object::To
“not” keywords, such as “to”, that’ll then handle “receive”
48 |
# File 'lib/lookout-3.0.rb', line 48 def not; Lookout::Object::Not.new(self) end |
#to ⇒ Lookout::Object::To
“to” keywords, such as “receive”
44 |
# File 'lib/lookout-3.0.rb', line 44 def to; Lookout::Object::To.new(self) end |
#to_lookout_expected ⇒ Lookout::Expected::Object
Returns A wrapper around the receiver, making it an expected value.
52 |
# File 'lib/lookout-3.0.rb', line 52 def to_lookout_expected; Lookout::Expected::Object.new(self) end |