Sha256: d4a56a6c823be1915cde21e1f8e55dc0aeaea8963dd030176ae34c04b5c8b19d

Contents?: true

Size: 617 Bytes

Versions: 9

Compression:

Stored size: 617 Bytes

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2020 Eric Crane.  All rights reserved.
#
# Clear the screen.
#

module Gloo
  module Verbs
    class Cls < Gloo::Core::Verb

      KEYWORD = 'cls'.freeze
      KEYWORD_SHORT = 'cls'.freeze

      #
      # Run the verb.
      #
      def run
        $engine&.clear_screen
      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

9 entries across 9 versions & 1 rubygems

Version Path
gloo-0.8.0 lib/gloo/verbs/cls.rb
gloo-0.7.7 lib/gloo/verbs/cls.rb
gloo-0.7.6 lib/gloo/verbs/cls.rb
gloo-0.7.5 lib/gloo/verbs/cls.rb
gloo-0.7.4 lib/gloo/verbs/cls.rb
gloo-0.7.3 lib/gloo/verbs/cls.rb
gloo-0.7.2 lib/gloo/verbs/cls.rb
gloo-0.7.1 lib/gloo/verbs/cls.rb
gloo-0.7.0 lib/gloo/verbs/cls.rb