Alarm class
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'k0u5uk3/mruby-alarm'
end
- use class method
$ ./bin/mirb
mirb - Embeddable Interactive Ruby Shell
> Alarm.alarm(5)
=> nil
> Alarm clock: 14
- use instance method
$ ./bin/mirb
mirb - Embeddable Interactive Ruby Shell
> arm = Alarm.new
=> #<Alarm:0x7f8e5882fff0>
> arm.alarm(5)
=> nil
> Alarm clock: 14
under the MIT License:
- see LICENSE file