Sha256: 750b488c648fdf86b129001ab8eeaebbca656373ccdddf467c706af5c0d05464

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

class Posgra::Utils
  module Helper
    def matched?(name, include_r, exclude_r)
      result = true

      if exclude_r
        result &&= name !~ exclude_r
      end

      if include_r
        result &&= name =~ include_r
      end

      result
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
posgra-0.2.3.beta lib/posgra/utils.rb
posgra-0.2.2 lib/posgra/utils.rb
posgra-0.2.1 lib/posgra/utils.rb
posgra-0.2.0 lib/posgra/utils.rb
posgra-0.1.9 lib/posgra/utils.rb
posgra-0.1.8 lib/posgra/utils.rb
posgra-0.1.7 lib/posgra/utils.rb
posgra-0.1.6 lib/posgra/utils.rb
posgra-0.1.5 lib/posgra/utils.rb
posgra-0.1.4 lib/posgra/utils.rb
posgra-0.1.3 lib/posgra/utils.rb
posgra-0.1.2 lib/posgra/utils.rb
posgra-0.1.1 lib/posgra/utils.rb
posgra-0.1.0 lib/posgra/utils.rb