class Magellan::Gcs::Proxy::MessageWrapper::ContextAccessor
Constants
- KEYS
Attributes
context[RW]
Public Class Methods
new(context)
click to toggle source
# File lib/magellan/gcs/proxy/message_wrapper.rb, line 32 def initialize(context) @context = context end
Public Instance Methods
[](key)
click to toggle source
# File lib/magellan/gcs/proxy/message_wrapper.rb, line 44 def [](key) case key.to_sym when *KEYS then context.send(key) end end
include?(key)
click to toggle source
# File lib/magellan/gcs/proxy/message_wrapper.rb, line 50 def include?(key) KEYS.include?(key) end