Class: SistemKebut::Paragraph::Kosong

Inherits:
DefPengelolaXML show all
Includes:
InnerParagraph
Defined in:
lib/sks/paragraph/dasar.rb

Direct Known Subclasses

BarisKosong

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

#initializeKosong

Returns a new instance of Kosong.



49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/sks/paragraph/dasar.rb', line 49

def initialize
  @mode = :normal
  @fstyle = TNR
  @fsize = 20
  @masuk = false
  @bold = false
  @italic = false
  @underline = false
  @spacing = :normal
  @align = :both
  @konten = String.new
end

Instance Attribute Details

#alignObject

Returns the value of attribute align.



46
47
48
# File 'lib/sks/paragraph/dasar.rb', line 46

def align
  @align
end

#boldObject

Returns the value of attribute bold.



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

def bold
  @bold
end

#fsizeObject

Returns the value of attribute fsize.



46
47
48
# File 'lib/sks/paragraph/dasar.rb', line 46

def fsize
  @fsize
end

#fstyleObject

Returns the value of attribute fstyle.



46
47
48
# File 'lib/sks/paragraph/dasar.rb', line 46

def fstyle
  @fstyle
end

#italicObject

Returns the value of attribute italic.



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

def italic
  @italic
end

#kontenObject

Returns the value of attribute konten.



46
47
48
# File 'lib/sks/paragraph/dasar.rb', line 46

def konten
  @konten
end

#masukObject

Returns the value of attribute masuk.



46
47
48
# File 'lib/sks/paragraph/dasar.rb', line 46

def masuk
  @masuk
end

#modeObject

Returns the value of attribute mode.



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

def mode
  @mode
end

#spacingObject

Returns the value of attribute spacing.



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

def spacing
  @spacing
end

#underlineObject

Returns the value of attribute underline.



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

def underline
  @underline
end