Sha256: ce1e7543d561c6033bd7730456318e67e7c98056c63f33fe9bc8aa6296b14ad0
Contents?: true
Size: 922 Bytes
Versions: 1
Compression:
Stored size: 922 Bytes
Contents
# Author:: Eric Crane (mailto:eric.crane@mac.com) # Copyright:: Copyright (c) 2019 Eric Crane. All rights reserved. # # Create an object, optionally of a type. # module Gloo module Verbs class Tell < Gloo::Core::Verb KEYWORD = 'tell' KEYWORD_SHORT = '->' TO = 'to' # # Run the verb. # def run name = @tokens.second msg = @tokens.after_token( TO ) pn = Gloo::Core::Pn.new name o = pn.resolve if o o.send_message( msg, @params ) else $log.error "Could not send message to object. Bad path: #{name}" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gloo-0.3.0 | lib/gloo/verbs/tell.rb |