Class: LibPtgBox::Unmarshaller::KbartFile

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/modules/lib_ptg_box/unmarshaller/kbart_file.rb

Instance Method Summary collapse

Instance Method Details

#kbartsObject


6
7
8
9
10
11
12
13
14
15
16
# File 'app/modules/lib_ptg_box/unmarshaller/kbart_file.rb', line 6

def kbarts
  @kbarts ||= begin
    kbarts = []
    skip = true
    content.each_line do |line|
      kbarts << Kbart.new(line) unless skip || line.length < 10
      skip = false
    end
    kbarts
  end
end