Skip to content

Instantly share code, notes, and snippets.

@Juice10
Last active September 10, 2018 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juice10/8f99e30726436061bd3c212646f5304c to your computer and use it in GitHub Desktop.
Save Juice10/8f99e30726436061bd3c212646f5304c to your computer and use it in GitHub Desktop.
# initialize standalone bundler
require __dir__ + '/bundle/bundler/setup.rb'
# require the gems we want to use
require 'betterlorem'
def main(params = {})
length = (params["length"] || 20).to_i
{ lipsum: BetterLorem.w(length, true) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment