module SheepAst::LetOperateBehavior

Let include module

Public Instance Methods

operate_action(pair, datastore, ast_name, operation, **options) click to toggle source
# File lib/sheep_ast/action/let_operate_behavior.rb, line 33
def operate_action(pair, datastore, ast_name, operation, **options)
  ldebug? and ldebug "operation Action #{operation.inspect} to #{ast_name.inspect}"

  if operation == OnOff::Disable
    @analyzer_core.disable_action(ast_name)
  elsif operation == OnOff::Enable
    @analyzer_core.enable_action(ast_name)
  end

  return T.unsafe(self).ret(**options)
end