Skip to content

k0u5uk3/mruby-alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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