splitter: fix parts_size and parts accessors.
This commit is contained in:
parent
56969ca5b3
commit
dcf100d42e
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@ require 'xtmfile/header'
|
||||||
|
|
||||||
module XtmFile
|
module XtmFile
|
||||||
class Splitter
|
class Splitter
|
||||||
attr_reader :parts, :parts_size
|
attr_reader :parts_size
|
||||||
def initialize input_filename
|
def initialize input_filename
|
||||||
@input_filename = input_filename
|
@input_filename = input_filename
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ module XtmFile
|
||||||
|
|
||||||
def parts= count
|
def parts= count
|
||||||
@header.filecount = count
|
@header.filecount = count
|
||||||
|
@parts_size = @header.filesize / count
|
||||||
end
|
end
|
||||||
|
|
||||||
def parts_size= size
|
def parts_size= size
|
||||||
|
|
Loading…
Reference in a new issue