Created
March 28, 2018 05:52
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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