Sha256: b34b04eb2bf014b4b210582a09be29cf8748f89270e005b75785ad5345c0aa06
Contents?: true
Size: 590 Bytes
Versions: 11
Compression:
Stored size: 590 Bytes
Contents
# -*- coding: utf-8 -*- require 'beeps/ext' require 'beeps/sound' require 'beeps/processor' module Beeps extend module ClassMethods def be() beep_sound(0.1).play end def bee() beep_sound(0.3).play end def beep(time = 0.5) beep_sound(time).play end def beeep() beep_sound(1).play end def beeeep() beep_sound(1.5).play end def beeeeep() beep_sound(2).play end private def beep_sound(time) Sound.new SquareWave.new, time end self end# ClassMethods end# Beeps
Version data entries
11 entries across 11 versions & 1 rubygems