Method: CircuitPatchTools::Commands::Info::Patch.open

Defined in:
lib/circuit_patch_tools/commands/info.rb

.open(path) ⇒ Object



64
65
66
67
# File 'lib/circuit_patch_tools/commands/info.rb', line 64

def self.open(path)
  raw = File.open(path, 'rb', encoding: Encoding::ASCII_8BIT).read
  unpack(raw).tap { |p| p.path = path }
end