Method: Object#or
- Defined in:
- lib/volt/extra_core/object.rb
#or(other) ⇒ Object
Provides the same functionality as ||, but since ReactiveValue’s only work with method calls, we provide .or as a convience.
11 12 13 14 15 16 17 |
# File 'lib/volt/extra_core/object.rb', line 11 def or(other) if self.true? return self else return other end end |