RubyGems Navigation menu

ivar 0.4.6

Ruby instance variables are so convenient - you don't even need to declare them! But... they are also dangerous, because a mispelled variable name results in `nil` instead of an error. Why not have the best of both worlds? Ivar lets you use plain-old instance variables, and automatically checks for typos. Ivar waits until an instance is created to do the checking, then uses Prism to look for variables that don't match what was set in initialization. So it's a little bit dynamic, a little bit static. It doesn't encumber your instance variable reads and writes with any extra checking. And with the `:warn_once` policy, it won't overwhelm you with output.

Gemfile:
=

Installeer:
=

Versies:

  1. 0.4.7 May 07, 2025 (35,5 KB)
  2. 0.4.6 May 07, 2025 (35,5 KB)
  3. 0.4.0 May 07, 2025 (35,5 KB)
  4. 0.2.0 April 30, 2025 (17 KB)

Runtime afhankelijkheden (1):

prism ~> 1.2

Eigenaren:

Pushed by:

Authors:

  • Avdi Grimm

SHA 256 checksum:

=

Total downloads 358

Voor deze versie 65

Versie vrijgegeven:

Licentie:

MIT

Required Ruby Version: >= 3.3.0

Links: