Yuuki

A caller / runner framework for Ruby.

Installation

Add this line to your application's Gemfile:

gem 'yuuki'

And then execute:

$ bundle

Or install it yourself as:

$ gem install yuuki

Usage

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.

License

The gem is available as open source under the terms of the MIT License.