Method: Code::Object#code_or_operator
- Defined in:
- lib/code/object.rb
#code_or_operator(other) ⇒ Object
417 418 419 420 421 |
# File 'lib/code/object.rb', line 417 def code_or_operator(other) code_other = other.to_code truthy? ? self : code_other end |