blank_empty_nil_filters | Ruby gem to extend Hash

 by   aks Ruby Version: Current License: MIT

kandi X-RAY | blank_empty_nil_filters Summary

kandi X-RAY | blank_empty_nil_filters Summary

blank_empty_nil_filters is a Ruby library. blank_empty_nil_filters has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Ruby gem to extend Hash and Array with filters for blank, empty, and nil values. This module creates new methods to be prepended to the Array, Hash, String, and Object classes to implement recursive filters for blank, empty, and nil values. The methods can select or reject values which are blank (whitespace), empty (zero length), or nil, and do so recursively. The default behavior is to filter recursively, without limit. However, optional arguments may be applied to any filter method to indicate the start level and the depth to which filtering should be done. This is useful if, say, a hash needs to retain its top-level keys, regardless of whether or not its values are empty, but deeper level hashes can be completely removed if they are empty. Note: ActiveSupport provides some of these methods, but in general is a much larger body of code. This module are only those methods related to "blank", "empty" or nil. Also, ActiveSupport uses Regexp match to determine blankness, while this code uses a non-destructive strip, which is both faster and less sensitive to non-UTF8 string error conditions. In general an empty value has zero length, and a blank value is either empty or has all blank values (e.g., to_s.strip.length.zero?). In the descriptions below, aoh is an Array or Hash object.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              blank_empty_nil_filters has a low active ecosystem.
              It has 2 star(s) with 0 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              blank_empty_nil_filters has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of blank_empty_nil_filters is current.

            kandi-Quality Quality

              blank_empty_nil_filters has no bugs reported.

            kandi-Security Security

              blank_empty_nil_filters has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              blank_empty_nil_filters is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              blank_empty_nil_filters releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of blank_empty_nil_filters
            Get all kandi verified functions for this library.

            blank_empty_nil_filters Key Features

            No Key Features are available at this moment for blank_empty_nil_filters.

            blank_empty_nil_filters Examples and Code Snippets

            No Code Snippets are available at this moment for blank_empty_nil_filters.

            Community Discussions

            No Community Discussions are available at this moment for blank_empty_nil_filters.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install blank_empty_nil_filters

            Add this line to your application's Gemfile:.

            Support

            Bug reports and pull requests are welcome on GitHub at https://github.com/aks/blank_empty_nil_filters.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/aks/blank_empty_nil_filters.git

          • CLI

            gh repo clone aks/blank_empty_nil_filters

          • sshUrl

            git@github.com:aks/blank_empty_nil_filters.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link