Class: Utility::Common
- Inherits:
-
Object
- Object
- Utility::Common
- Defined in:
- lib/utility/common.rb
Class Method Summary collapse
Class Method Details
.return_if_present(*args) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/utility/common.rb', line 12 def return_if_present(*args) args.each do |arg| return arg unless arg.nil? end nil end |