Registry / utility / attr-bool

attr-bool

JSON →
library0.3.2rbrubygemsunverified

Provides attr_accessor? and attr_reader? with question marks for boolean/predicate attributes.

gem install attr_bool
INSTALL
IMPORT
SIG · ATTR-BOOL
A
attr-bool
utilityrubyv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AttrBool
require 'attr_bool'

Define boolean accessors with predicate methods

require 'attr_bool' class User using AttrBool::Ref attr_accessor? :active end user = User.new user.active? # => nil
Debug
Known issues
breakingRequires Ruby 2.0+ for Refinements
fix
Use Ruby 2.0 or later, or use extend/extend approach
affects: < 2.0
Upgrade
Version history
0.3.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
2
Meta
1
Resources
attr-bool — gem install attr-bool · libregistry