Sha256: 65557d4e81ac8746452c254c1a414980344cc071db9168628f6a67a53391b428
Contents?: true
Size: 761 Bytes
Versions: 2
Compression:
Stored size: 761 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2020 Eric Crane. All rights reserved. # # Play a standard system beep sound. # module GlooLang module Verbs class Beep < GlooLang::Core::Verb KEYWORD = 'beep'.freeze KEYWORD_SHORT = 'b'.freeze # # Run the verb. # # We'll mark the application as not running and let the # engine stop gracefully next time through the loop. # def run print 7.chr end # # Get the Verb's keyword. # def self.keyword return KEYWORD end # # Get the Verb's keyword shortcut. # def self.keyword_shortcut return KEYWORD_SHORT end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gloo-lang-0.9.4 | lib/gloo_lang/verbs/beep.rb |
gloo-lang-0.9.3 | lib/gloo_lang/verbs/beep.rb |