Finally attr_accessor? & attr_reader? with question marks for booleans/predicates!? To get started, pick one: (1) in your class/module/file, add `using AttrBool::Ref`, or (2) in your class/module, add `extend AttrBool::Ext`, or (3) in your app/script (not library), include `require 'attr_bool/core_ext'`. Now simply use any: [ attr_accessor?, attr_reader?, attr_writer?, attr_bool, attr_bool?, attr_bool! ]. Keywords: attr, attribute, attributes, bool, boolean, booleans, predicate, predicates

Required Ruby Version

>= 3.1

Authors

Bradley Whited

Versions

  1. 0.3.2
    1. source

      1. 0.3.2 source August 23, 2025 (13.5 KB)
  2. 0.3.1
    1. source

      1. 0.3.1 source June 29, 2025 (13.5 KB)
  3. 0.3.0
    1. source

      1. 0.3.0 source June 28, 2025 (13.5 KB)
  4. 0.2.2
    1. source

      1. 0.2.2 source June 16, 2021 (7.5 KB)
  5. 0.2.1
    1. source

      1. 0.2.1 source November 07, 2020 (8 KB)
Show all versions (7 total)

Pushed by

SHA 256 checksum