Module: Enumerable

Defined in:
lib/ruck/clock.rb

Instance Method Summary collapse

Instance Method Details

#first_non_nilObject



130
131
132
133
134
135
136
# File 'lib/ruck/clock.rb', line 130

def first_non_nil
  each do |o|
    val = yield o
    return val if val
  end
  nil
end