Skip to content

k0u5uk3/mruby-alarm

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published