Class: SistemKebut::Paragraph::Teks

Inherits:
DefPengelolaXML show all
Includes:
InnerParagraph
Defined in:
lib/sks/paragraph/dasar.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(k) ⇒ Teks

Returns a new instance of Teks.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/sks/paragraph/dasar.rb', line 29

def initialize(k)
  @mode = :normal
  @fstyle = TNR
  @fsize = 22
  @masuk = true
  @bold = false
  @italic = false
  @underline = false
  @spacing = :normal
  @align = :both
  @konten = k
end

Instance Attribute Details

#alignObject

Returns the value of attribute align.



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

def align
  @align
end

#boldObject

Returns the value of attribute bold.



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

def bold
  @bold
end

#fsizeObject

Returns the value of attribute fsize.



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

def fsize
  @fsize
end

#fstyleObject

Returns the value of attribute fstyle.



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

def fstyle
  @fstyle
end

#italicObject

Returns the value of attribute italic.



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

def italic
  @italic
end

#kontenObject

Returns the value of attribute konten.



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

def konten
  @konten
end

#masukObject

Returns the value of attribute masuk.



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

def masuk
  @masuk
end

#modeObject

Returns the value of attribute mode.



28
29
30
# File 'lib/sks/paragraph/dasar.rb', line 28

def mode
  @mode
end

#spacingObject

Returns the value of attribute spacing.



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

def spacing
  @spacing
end

#underlineObject

Returns the value of attribute underline.



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

def underline
  @underline
end