Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

333 B
Raw Blame
# Data models for the calculator
module Models
  # A record of a single calculation
  class CalculationRecord
    attr_reader :x, :y, :result

    def initialize(x, y, result)
      @x = x
      @y = y
      @result = result
    end
  end

  # Supported operations
  class Operation
    ADD = :add
    SUBTRACT = :subtract
  end
end