Class: NginxTransform

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

Defined Under Namespace

Classes: Exp, Group

Class Method Summary collapse

Class Method Details

.assemble_binary(seq) ⇒ Object



71
72
73
74
75
# File 'lib/inspec/utils/nginx_parser.rb', line 71

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