ngs / rb-blink1

Ruby interface for blink(1)
http://ngs.github.io/rb-blink1/
MIT License
50 stars 9 forks source link

improve Blink1.open to use instance_eval for convenient #1

Closed jugyo closed 11 years ago

jugyo commented 11 years ago

Blink1.open is so convenient! I've improved it to be no longer need the argument for the block.

Example:

Blink1.open do
  blink 0xff, 0xff, 0xff, 3
end

The rb-blink1 is very useful. Thank you for your work. :smile:

ngs commented 11 years ago

Thank you for contributing! Merged and released as version 0.0.5.