Sha256: 9e6357b038d9bc621f6f70b786516a88fdc9557e4d0282d3da9db17c1ce7415c

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

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

module GlooLang
  module Verbs
    class Cls < GlooLang::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

2 entries across 2 versions & 1 rubygems

Version Path
gloo-lang-0.9.4 lib/gloo_lang/verbs/cls.rb
gloo-lang-0.9.3 lib/gloo_lang/verbs/cls.rb