Class: SistemKebut::Paragraph::MejaSekat

Inherits:
Formulir show all
Defined in:
lib/sks/paragraph/mejasekat.rb

Defined Under Namespace

Classes: Unit

Instance Attribute Summary collapse

Attributes inherited from Formulir

#align, #bold, #fsize, #fstyle, #italic, #konten, #masuk, #mode, #spacing, #tabsize, #underline

Instance Method Summary collapse

Methods inherited from Formulir

#[], #tiap

Methods included from InnerParagraph

#gandakan_spacing, #kecilkan_spacing, #struktur, #ubah_ukuran

Methods inherited from DefPengelolaXML

#pembangun

Methods inherited from KebutSemalam::PengelolaXML

#build, #pembangun

Constructor Details

#initialize(j, ukuran) ⇒ MejaSekat

Returns a new instance of MejaSekat.



36
37
38
39
40
# File 'lib/sks/paragraph/mejasekat.rb', line 36

def initialize(j, ukuran)
  super(nil, ukuran)
  @jumlah = j
  @kepala = nil
end

Instance Attribute Details

#jumlahObject

Returns the value of attribute jumlah.



34
35
36
# File 'lib/sks/paragraph/mejasekat.rb', line 34

def jumlah
  @jumlah
end

#kepala(*args) ⇒ Object

Returns the value of attribute kepala.



34
35
36
# File 'lib/sks/paragraph/mejasekat.rb', line 34

def kepala
  @kepala
end

Instance Method Details

#tambah(*args) ⇒ Object



47
48
49
50
# File 'lib/sks/paragraph/mejasekat.rb', line 47

def tambah(*args)
  @konten.push(Unit.new(@jumlah, *args))
  return nil
end