No description, website, or topics provided.
C Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
mrblib
src
test
.travis.yml
.travis_build_config.rb
LICENSE
README.md
mrbgem.rake
mruby-alarm.gem

README.md

mruby-alarm Build Status

Alarm class

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'k0u5uk3/mruby-alarm'
end

example

  • 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

License

under the MIT License:

  • see LICENSE file