Sha256: d6fd961ec7e1e4f3b07aae4e93e7cbb42d05a5f91604dd13532ab9baf040af5a

Contents?: true

Size: 160 Bytes

Versions: 1

Compression:

Stored size: 160 Bytes

Contents

module WithDefaultValue::BasicObjectExt

  def with_default_value( default_value )
    if self.blank?
      default_value
    else
      self
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
with_default_value-0.1.0 lib/with_default_value/basic_object_ext.rb