Class: Packr::Privates

Inherits:
Encoder show all
Defined in:
lib/packr/privates.rb

Constant Summary collapse

IGNORE =
{
  :CONDITIONAL => Packr::IGNORE,
  "(OPERATOR)(REGXEP)" => Packr::IGNORE
}
PATTERN =
/\b_[\da-zA-Z$][\w$]*\b/

Instance Method Summary collapse

Methods inherited from Encoder

#encode, #search

Constructor Details

#initializePrivates

Returns a new instance of Privates.



11
12
13
14
15
# File 'lib/packr/privates.rb', line 11

def initialize
  super(PATTERN, lambda { |index|
    "_" + Packr.encode62(index)
  }, IGNORE)
end