Sha256: a77541386f495bf59967a2bfb75d162b01dd5963452704ad2d061220b847b422
Contents?: true
Size: 765 Bytes
Versions: 6
Compression:
Stored size: 765 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Quit the running gloo engine. # module GlooLang module Verbs class Quit < GlooLang::Core::Verb KEYWORD = 'quit'.freeze KEYWORD_SHORT = 'q'.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 $engine.stop_running 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
6 entries across 6 versions & 1 rubygems