Class: Object
- Inherits:
- BasicObject
- Includes:
- Rtype::MethodAnnotator
- Defined in:
- lib/rtype/core_ext.rb,
lib/rtype/behavior/core_ext.rb
Instance Method Summary collapse
- #and(*others) ⇒ Rtype::Behavior::And
- #nilable ⇒ Rtype::Behavior::Nilable (also: #or_nil)
- #not ⇒ Rtype::Behavior::Not
- #xor(*others) ⇒ Rtype::Behavior::Xor
Methods included from Rtype::MethodAnnotator
Instance Method Details
#and(*others) ⇒ Rtype::Behavior::And
3 4 5 |
# File 'lib/rtype/behavior/core_ext.rb', line 3 def and(*others) ::Rtype::and(self, *others) end |
#nilable ⇒ Rtype::Behavior::Nilable Also known as: or_nil
8 9 10 |
# File 'lib/rtype/behavior/core_ext.rb', line 8 def nilable ::Rtype::nilable(self) end |
#not ⇒ Rtype::Behavior::Not
14 15 16 |
# File 'lib/rtype/behavior/core_ext.rb', line 14 def not ::Rtype::not(self) end |
#xor(*others) ⇒ Rtype::Behavior::Xor
19 20 21 |
# File 'lib/rtype/behavior/core_ext.rb', line 19 def xor(*others) ::Rtype::xor(self, *others) end |