Sha256: 5881ad485d11da6ce150faa86ca91a86af314983f90233385ebd6a899b2cbd9e
Contents?: true
Size: 898 Bytes
Versions: 23
Compression:
Stored size: 898 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 GlooLang module Verbs class Load < GlooLang::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
23 entries across 23 versions & 1 rubygems