Sha256: e6b6a550673615fe936cc0a66bbe49f7612f09b5983b299f3b413a014882ec67
Contents?: true
Size: 890 Bytes
Versions: 20
Compression:
Stored size: 890 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Save an object to a file or other persistance mechcanism. # module Gloo module Verbs class Load < Gloo::Core::Verb KEYWORD = 'load'.freeze KEYWORD_SHORT = '<'.freeze MISSING_EXPR_ERR = 'Missing Expression!'.freeze # # Run the verb. # def run fn = @tokens.second if fn @engine.log.debug "Getting ready to load file: #{fn}" @engine.persist_man.load fn else @engine.err MISSING_EXPR_ERR end 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
20 entries across 20 versions & 1 rubygems