Daberu
おしゃべりなオブジェクトをつくることができます。 [You can create a talkative object.]
主な用途:デバッグ [One way, Debugging.]
Installation
Add this line to your application's Gemfile:
gem 'daberu'
And then execute:
$ bundle
Or install it yourself as:
$ gem install daberu
Usage
require 'daberu'
a = Daberu.new([])
a << 1 #=> "Method: <<, Arguments: [1], Block: "
a << 2 #=> "Method: <<, Arguments: [2], Block: "
a << 3 #=> "Method: <<, Arguments: [3], Block: "
a.each do |i|
p i
end
#=> "Method: each, Arguments: [], Block: #<Proc:...>"
1
2
3
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request