Dow.rb

This content was produced by an LLM and could include errors.

This script creates and freezes a constant array called DOW_JP. It populates this array with the seven Japanese characters representing the days of the week, ensuring the data structure is immutable.

DOW_JP = %w[日 月 火 水 木 金 土].map(&:freeze).freeze
#=> ["日", "月", "火", "水", "木", "金", "土"]

Ruby 4.0.3