vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Util::Presence#present?

Determines if the given object is "present". A String is considered
present if the stripped contents are not empty. An Array/Hash is
considered present if they have a length of more than 1. "true" is
always present and `false` and `nil` are always not present. Any other
object is considered to be present.

Source | Google | Stack overflow

Edit

git clone [email protected]:mitchellh/vagrant.git

cd vagrant

open lib/vagrant/util/presence.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Util--Presence-present--for-pr


# Commit to git

git add lib/vagrant/util/presence.rbgit commit -m "better docs for Vagrant::Util::Presence#present?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Vagrant--Util--Presence-present--for-pr

hub pull-request


# Celebrate!