Sha256: 28b1fdb90bf1a068b315ebd804e145ddaa8828f6630cb1e18fc8925845d1b933

Contents?: true

Size: 753 Bytes

Versions: 29

Compression:

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

29 entries across 29 versions & 1 rubygems

Version Path
gloo-3.5.0 lib/gloo/verbs/beep.rb
gloo-3.4.1 lib/gloo/verbs/beep.rb
gloo-3.4.0 lib/gloo/verbs/beep.rb
gloo-3.3.0 lib/gloo/verbs/beep.rb
gloo-3.2.0 lib/gloo/verbs/beep.rb
gloo-3.1.1 lib/gloo/verbs/beep.rb
gloo-3.1.0 lib/gloo/verbs/beep.rb
gloo-3.0.1 lib/gloo/verbs/beep.rb
gloo-3.0.0 lib/gloo/verbs/beep.rb
gloo-2.5.0 lib/gloo/verbs/beep.rb
gloo-2.4.3 lib/gloo/verbs/beep.rb
gloo-2.4.2 lib/gloo/verbs/beep.rb
gloo-2.4.1 lib/gloo/verbs/beep.rb
gloo-2.4.0 lib/gloo/verbs/beep.rb
gloo-2.3.1 lib/gloo/verbs/beep.rb
gloo-2.2.0 lib/gloo/verbs/beep.rb
gloo-2.1.0 lib/gloo/verbs/beep.rb
gloo-2.0.2 lib/gloo/verbs/beep.rb
gloo-2.0.1 lib/gloo/verbs/beep.rb
gloo-2.0.0 lib/gloo/verbs/beep.rb