Sha256: dcf13d4684ab5bd98601d41f0e95c3554516548c4bbf03bbd2e1526cf08bda9a
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
# Sxmrb Ruby library for SXMO[1] user scripts. ## Installation Add this line to your application's Gemfile: ```ruby gem 'sxmrb' ``` And then execute: $ bundle install Or install it yourself as: $ gem install sxmrb Or use an inline bundle: ```ruby require 'bundler/inline' gemfile do source 'https://rubygems.org' gem 'sxmrb' end ``` ## Usage ```ruby def main_menu Sxmrb.echo(<<~'END') | Sxmrb.menu(prompt: 'Ledger') Add Transaction Balance Budget Quit END end ``` ```ruby value = Sxmrb.input(prompt: 'Amount?') ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitLab at https://gitlab.com/fjc/sxmrb. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). [1]: https://sr.ht/~mil/Sxmo/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sxmrb-0.1.0 | README.md |