Sha256: 800ad764fa9716a021a768a8b2aef516e8e674783d542aa055e30f126f60a828

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

class Packr
  class Privates < Encoder
    
    IGNORE = {
      :CONDITIONAL => Packr::IGNORE,
      "(OPERATOR)(REGXEP)" => Packr::IGNORE
    }
    
    PATTERN = /\b_[\da-zA-Z$][\w$]*\b/
    
    def initialize
      super(PATTERN, lambda { |index|
        "_" + Packr.encode62(index)
      }, IGNORE)
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
packr-3.2.1 lib/packr/privates.rb
packr-3.1.1 lib/packr/privates.rb
packr-3.1.0 lib/packr/privates.rb