Vermelinho
A simple gem example from How to make your own gem💎 Hands on ruby.
Get started
In the interactive shell:
% irb -Ilib -rvermelinho
irb(main):001:0> Vermelinho.hi("english")
=> "hello world"
irb(main):002:0> Vermelinho.hi("spanish")
=> "hola mundo"You can quit the shell with exit.
Use the bin:
% ruby -Ilib ./bin/vermelinho
"🤷️"
% ruby -Ilib ./bin/vermelinho spanish
"hola mundo"Tests
Run the tests with:
rake testBuild gem
Build the gem
gem build *.gemspec