osem

https://github.com/opensuse/osem

Ruby

Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.

Conference#assert_keys_are_continuously

Asserts that all keys in the hash are continuously.
If not, the missing key is inserted with value 0.

====Returns
* +Hash+  { 1 => 1, 2 => 0, 3 => 0, 4 => 3 }

Source | Google | Stack overflow

Edit

git clone [email protected]:opensuse/osem.git

cd osem

open app/models/conference.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Conference-assert_keys_are_continuously-for-pr


# Commit to git

git add app/models/conference.rbgit commit -m "better docs for Conference#assert_keys_are_continuously"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Conference-assert_keys_are_continuously-for-pr

hub pull-request


# Celebrate!