Method: Block::FieldFormat.from

Defined in:
lib/zip64/structures.rb

.from(line) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/zip64/structures.rb', line 5

def self.from(line)
  case line
  when Array
    new(*line)
  when self
    line
  else
    raise "#{line.inspect} is not a valid field"
  end
end