// Ruby Calculator - Interactive calculator built with Ruby on Rails
// Author: RSK World (Molla Samser, Founder | Rima Khatun, Designer & Tester)
// Contact: help@rskworld.in | +91 93305 39277
// Website: https://rskworld.in
// Year: 2026
// Description: Build a fully functional calculator using Ruby on Rails with modern UI

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = [ "name", "output" ]
  static values = { name: String }

  greet() {
    this.outputTarget.textContent =
      `Hello, ${this.nameTarget.value}!`
  }
}
