class ObjectPresent
Public Class Methods
new(object)
click to toggle source
# File lib/object_present.rb, line 2 def initialize(object) @object = object end
Public Instance Methods
present?() { || ... }
click to toggle source
# File lib/object_present.rb, line 6 def present? if @object.present? yield else nil end end