Sha256: 576e5347b655b1ebad058ff7e342243bc6e0d5568e16357c9846f0dd5d1c0bda

Contents?: true

Size: 146 Bytes

Versions: 2

Compression:

Stored size: 146 Bytes

Contents

module FreezeRay
  def attr_frozen(*attrs)
    attrs.each do |attr|
      define_method(attr) do
        super.freeze
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
Peeja-freeze-ray-0.0.1 lib/freeze_ray.rb
freeze-ray-0.0.1 lib/freeze_ray.rb