Sha256: 9cac5bfc290d30ccd13fa833923cb545584481e8ced66380bf758f1053f9d81d

Contents?: true

Size: 655 Bytes

Versions: 48

Compression:

Stored size: 655 Bytes

Contents

#boolbase
This very simple module provides two basic functions, one that always returns true (`trueFunc`) and one that always returns false (`falseFunc`).

###WTF?

By having only a single instance of these functions around, it's possible to do some nice optimizations. Eg. [`CSSselect`](https://github.com/fb55/CSSselect) uses these functions to determine whether a selector won't match any elements. If that's the case, the DOM doesn't even have to be touched.

###And why is this a separate module?

I'm trying to modularize `CSSselect` and most modules depend on these functions. IMHO, having a separate module is the easiest solution to this problem.

Version data entries

48 entries across 44 versions & 12 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/boolbase/README.md
rapid_stack-0.1.1 templates/FrontEnd/node_modules/boolbase/README.md
rapid_stack-0.1.0 templates/FrontEnd/node_modules/boolbase/README.md
optimacms-0.1.61 spec/dummy/node_modules/boolbase/README.md
disco_app-0.18.0 test/dummy/node_modules/boolbase/README.md
disco_app-0.18.2 test/dummy/node_modules/boolbase/README.md
disco_app-0.16.1 test/dummy/node_modules/boolbase/README.md
disco_app-0.15.2 test/dummy/node_modules/boolbase/README.md
disco_app-0.18.4 test/dummy/node_modules/boolbase/README.md
disco_app-0.18.1 test/dummy/node_modules/boolbase/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/boolbase/README.md
disco_app-0.14.0 test/dummy/node_modules/boolbase/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/boolbase/README.md
tang-0.2.1 spec/tang_app/node_modules/boolbase/README.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/boolbase/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/boolbase/README.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/boolbase/README.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/boolbase/README.md
tang-0.2.0 spec/tang_app/node_modules/boolbase/README.md
tang-0.1.0 spec/tang_app/node_modules/boolbase/README.md