Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ishotihadus/yuuki


https://github.com/ishotihadus/yuuki

Last synced: about 2 months ago
JSON representation

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::Runner

add :a
def a
puts 'a'
end

add :b
tag :b, :tag_b
def b
puts 'b'
end
end

yuuki = Yuuki::Caller.new(HogeClass)
yuuki.run
# a
# b

yuuki.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).