class OperateDo::OperateProxy

Public Class Methods

new(operator) click to toggle source
# File lib/operate_do.rb, line 129
def initialize(operator)
  @operator = operator
end

Private Instance Methods

method_missing(method_name, *args, &block) click to toggle source
# File lib/operate_do.rb, line 136
def method_missing(method_name, *args, &block)
  ret_val = nil

  @operator.operate do
    ret_val = @operator.__send__(method_name, *args, &block)
  end

  ret_val
end
respond_to_missing?(symbol, include_private) click to toggle source
# File lib/operate_do.rb, line 146
def respond_to_missing?(symbol, include_private)
  @operator.__send__(:respond_to_missing?, symbol, include_private)
end