Skip to content
No description, website, or topics provided.
C Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example update Nov 4, 2015
mrblib first commit Oct 30, 2015
src update Nov 4, 2015
test first commit Oct 30, 2015
.travis.yml first commit Oct 30, 2015
.travis_build_config.rb first commit Oct 30, 2015
LICENSE first commit Oct 30, 2015
README.md update README.md Nov 4, 2015
mrbgem.rake add dependency Nov 4, 2015
mruby-alarm.gem first commit Oct 30, 2015

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
You can’t perform that action at this time.