Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ishotihadus/yuuki
https://github.com/ishotihadus/yuuki
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ishotihadus/yuuki
- Owner: Ishotihadus
- License: mit
- Created: 2019-03-16T08:31:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T14:42:48.000Z (over 2 years ago)
- Last Synced: 2024-10-31T14:26:56.714Z (2 months ago)
- Language: Ruby
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Yuuki
A caller / runner framework for Ruby.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'yuuki'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install yuuki
## Usage
```ruby
require 'yuuki'class HogeClass
extend Yuuki::Runneradd :a
def a
puts 'a'
endadd :b
tag :b, :tag_b
def b
puts 'b'
end
endyuuki = Yuuki::Caller.new(HogeClass)
yuuki.run
# a
# byuuki.run_tag(:tag_b)
# b
```## Contributing
Bug reports and pull requests are welcome on GitHub at [https://github.com/ishotihadus/yuuki](https://github.com/ishotihadus/yuuki).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).