class Exceptor::ContextDelegator
Public Class Methods
new(context)
click to toggle source
# File lib/exceptor/context_delegator.rb, line 4 def initialize(context) @context = context end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
# File lib/exceptor/context_delegator.rb, line 8 def method_missing(name, *args, &block) name = name.id2name name.delete!('=') ? @context.local_variable_set(name, args[0]) : @context.local_variable_get(name) end