FarmBot/Farmbot-Web-App

View on GitHub
app/lib/celery_script/ast_base.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Base class for every "thing" that is found in a CeleryScript AST.
module CeleryScript
  # Abstract class that AstLeaf and AstNode inherit from.
  # Use this for shared leaf/node behavior.
  class AstBase
    def invalidate!(message = "Unspecified type check error.")
      raise CeleryScript::TypeCheckError, message
    end
  end
end