Class: SistemKebut::Paragraph::Penomoran

Inherits:
Teks show all
Includes:
InnerParagraph
Defined in:
lib/sks/paragraph/penomoran.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id) ⇒ Penomoran

Returns a new instance of Penomoran.



12
13
14
15
16
# File 'lib/sks/paragraph/penomoran.rb', line 12

def initialize(id)
  super([])
  @masuk = false
  @numid = id
end

Instance Attribute Details

#alignObject

Returns the value of attribute align.



6
7
8
# File 'lib/sks/paragraph/penomoran.rb', line 6

def align
  @align
end

#boldObject

Returns the value of attribute bold.



7
8
9
# File 'lib/sks/paragraph/penomoran.rb', line 7

def bold
  @bold
end

#fsizeObject

Returns the value of attribute fsize.



6
7
8
# File 'lib/sks/paragraph/penomoran.rb', line 6

def fsize
  @fsize
end

#fstyleObject

Returns the value of attribute fstyle.



6
7
8
# File 'lib/sks/paragraph/penomoran.rb', line 6

def fstyle
  @fstyle
end

#italicObject

Returns the value of attribute italic.



7
8
9
# File 'lib/sks/paragraph/penomoran.rb', line 7

def italic
  @italic
end

#kontenObject

Returns the value of attribute konten.



6
7
8
# File 'lib/sks/paragraph/penomoran.rb', line 6

def konten
  @konten
end

#masukObject

Returns the value of attribute masuk.



6
7
8
# File 'lib/sks/paragraph/penomoran.rb', line 6

def masuk
  @masuk
end

#modeObject

Returns the value of attribute mode.



8
9
10
# File 'lib/sks/paragraph/penomoran.rb', line 8

def mode
  @mode
end

#numidObject (readonly)

Returns the value of attribute numid.



10
11
12
# File 'lib/sks/paragraph/penomoran.rb', line 10

def numid
  @numid
end

#spacingObject

Returns the value of attribute spacing.



7
8
9
# File 'lib/sks/paragraph/penomoran.rb', line 7

def spacing
  @spacing
end

#underlineObject

Returns the value of attribute underline.



7
8
9
# File 'lib/sks/paragraph/penomoran.rb', line 7

def underline
  @underline
end

Instance Method Details

#[](id) ⇒ Object



18
19
20
# File 'lib/sks/paragraph/penomoran.rb', line 18

def [](id)
  @konten[id]
end

#tambah(teks) ⇒ Object



26
27
28
29
# File 'lib/sks/paragraph/penomoran.rb', line 26

def tambah(teks)
  @konten.push(teks)
  return nil
end

#tiap(&block) ⇒ Object



22
23
24
# File 'lib/sks/paragraph/penomoran.rb', line 22

def tiap(&block)
  @konten.each(&block)
end