class EftCmdr::State
state: context, data, binding
Public Class Methods
new(ctx, data, scope = nil)
click to toggle source
Calls superclass method
# File lib/eftcmdr.rb, line 29 def initialize(ctx, data, scope = nil) super ctx, data, scope || data._binding end
Public Instance Methods
eval(code)
click to toggle source
# File lib/eftcmdr.rb, line 35 def eval(code) data.ctx = ctx; scope.eval code end
merge_ctx(ctx_)
click to toggle source
# File lib/eftcmdr.rb, line 32 def merge_ctx(ctx_) self.class.new ctx.merge(ctx_), data, scope end