Skip to content

Instantly share code, notes, and snippets.

@moonglum
Created March 28, 2018 05:52
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 moonglum/9786556efafd47fc70853e2cc84ce17d to your computer and use it in GitHub Desktop.
Save moonglum/9786556efafd47fc70853e2cc84ce17d to your computer and use it in GitHub Desktop.
Running this will first check if the gem mote is installed, install it if it isn't and then require the gem and use it
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "mote", "~> 1.3.0"
end
example = Mote.parse("Hello {{name}}", self, [:name])
puts example.call(name: "World")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment