Wednesday, July 15, 2026 1:55:03 AM
> project show esm_website_v1
The unexpected heart of the ESM ecosystem. What started as a simple Rails dashboard has evolved into the command center for thousands of gaming communities, proving that sometimes the best infrastructure projects are the ones you never planned to build.
Details
> immutable_struct.rb
# frozen_string_literal: true

class ImmutableStruct < Data
  def self.name
    "ImmutableStruct"
  end

  alias_method :to_hash, :to_h
  alias_method :values, :deconstruct

  def ==(other)
    to_h == other&.to_h
  end

  # Act like ostruct and return nil if the method isn't defined
  def method_missing(method_name, *arguments, &block)
    send(method_name, *arguments, &block) if self.class.method_defined?(method_name)
  end

  def respond_to_missing?(_method_name, _include_private = false)
    true
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7