class CircuitPatchTools::Commands::Info::Patch

Attributes

path[RW]

Public Class Methods

open(path) click to toggle source
# 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