class Object
Public Instance Methods
oror(alternative)
click to toggle source
# File lib/oror.rb, line 25 def oror(alternative) if respond_to?(:blank?) && !!blank? || respond_to?(:empty?) && !!empty? || !self alternative else self end end