Class: NginxTransform

Inherits:
Parslet::Transform
  • Object
show all
Defined in:
lib/utils/nginx_parser.rb

Defined Under Namespace

Classes: Exp, Group

Class Method Summary collapse

Class Method Details

.assemble_binary(seq) ⇒ Object



75
76
77
78
79
# File 'lib/utils/nginx_parser.rb', line 75

def self.assemble_binary(seq)
  b = ErlangBitstream.new
  seq.each { |i| b.add(i) }
  b.value
end