Class: Twiddler::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/twiddler/parser.rb

Defined Under Namespace

Classes: V4Parser

Class Method Summary collapse

Class Method Details

.parse(data) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/twiddler/parser.rb', line 5

def self.parse(data)
  version = *data.unpack("c")
  case version
  when 4
    V4Parser.new(data, 1).go.parsed
  end
end