Sha256: 938407721205cb031921152ddfe027b73f937f9bb04ae67564a72c342afb9e65
Contents?: true
Size: 765 Bytes
Versions: 23
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
23 entries across 23 versions & 1 rubygems