Sha256: b0358eb7f8e4ba40166d89f0cca53e94d2279f55c693c017930011f31f0fcae5

Contents?: true

Size: 757 Bytes

Versions: 19

Compression:

Stored size: 757 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 Gloo
  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

19 entries across 19 versions & 1 rubygems

Version Path
gloo-1.4.2 lib/gloo/verbs/beep.rb
gloo-1.4.1 lib/gloo/verbs/beep.rb
gloo-1.4.0 lib/gloo/verbs/beep.rb
gloo-1.3.3 lib/gloo/verbs/beep.rb
gloo-1.3.2 lib/gloo/verbs/beep.rb
gloo-1.3.1 lib/gloo/verbs/beep.rb
gloo-1.3.0 lib/gloo/verbs/beep.rb
gloo-1.2.10 lib/gloo/verbs/beep.rb
gloo-1.2.9 lib/gloo/verbs/beep.rb
gloo-1.2.8 lib/gloo/verbs/beep.rb
gloo-1.2.7 lib/gloo/verbs/beep.rb
gloo-1.2.6 lib/gloo/verbs/beep.rb
gloo-1.2.5 lib/gloo/verbs/beep.rb
gloo-1.2.4 lib/gloo/verbs/beep.rb
gloo-1.2.3 lib/gloo/verbs/beep.rb
gloo-1.2.2 lib/gloo/verbs/beep.rb
gloo-1.2.0 lib/gloo/verbs/beep.rb
gloo-1.1.0 lib/gloo/verbs/beep.rb
gloo-1.0.0 lib/gloo/verbs/beep.rb