Sha256: 7987bdf950385ae958e33b832b790a014393ce7a6e3f985386051069b9aa7b8a
Contents?: true
Size: 965 Bytes
Versions: 1
Compression:
Stored size: 965 Bytes
Contents
# Signum Short description and motivation. ## Usage How to use my plugin. ## Installation Add this line to your application's Gemfile: ```ruby gem 'signum' ``` Add signum to your package.json: ``` yarn add signum ``` Add signum to your application.js: ``` import { Signum } from "@entdec/signum" // application is a Stimulus application Signum.start(application) ``` ## Use In controllers, or from background jobs, basically anywhere you want you can use the following methods: ```ruby Signum.signal(Current.user, text: "Hello world!") Signum.info(Current.user, text: "We're still here!") Signum.error(Current.user, text: "Houston, we have a problem!") Signum.success(Current.user, text: "The Eagle has landed!") ``` Above we used the `Current.user` as the user to signal to. ## Contributing Contribution directions go here. ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
signum-0.3.12 | README.md |