Class: SistemKebut::Paragraph::Penomoran
- Inherits:
-
Teks
- Object
- KebutSemalam::PengelolaXML
- DefPengelolaXML
- Teks
- SistemKebut::Paragraph::Penomoran
- Includes:
- InnerParagraph
- Defined in:
- lib/sks/paragraph/penomoran.rb
Instance Attribute Summary collapse
-
#align ⇒ Object
Returns the value of attribute align.
-
#bold ⇒ Object
Returns the value of attribute bold.
-
#fsize ⇒ Object
Returns the value of attribute fsize.
-
#fstyle ⇒ Object
Returns the value of attribute fstyle.
-
#italic ⇒ Object
Returns the value of attribute italic.
-
#konten ⇒ Object
Returns the value of attribute konten.
-
#masuk ⇒ Object
Returns the value of attribute masuk.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#numid ⇒ Object
readonly
Returns the value of attribute numid.
-
#spacing ⇒ Object
Returns the value of attribute spacing.
-
#underline ⇒ Object
Returns the value of attribute underline.
Instance Method Summary collapse
- #[](id) ⇒ Object
-
#initialize(id) ⇒ Penomoran
constructor
A new instance of Penomoran.
- #tambah(teks) ⇒ Object
- #tiap(&block) ⇒ Object
Methods included from InnerParagraph
#gandakan_spacing, #kecilkan_spacing, #struktur, #ubah_ukuran
Methods inherited from DefPengelolaXML
Methods inherited from KebutSemalam::PengelolaXML
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
#align ⇒ Object
Returns the value of attribute align.
6 7 8 |
# File 'lib/sks/paragraph/penomoran.rb', line 6 def align @align end |
#bold ⇒ Object
Returns the value of attribute bold.
7 8 9 |
# File 'lib/sks/paragraph/penomoran.rb', line 7 def bold @bold end |
#fsize ⇒ Object
Returns the value of attribute fsize.
6 7 8 |
# File 'lib/sks/paragraph/penomoran.rb', line 6 def fsize @fsize end |
#fstyle ⇒ Object
Returns the value of attribute fstyle.
6 7 8 |
# File 'lib/sks/paragraph/penomoran.rb', line 6 def fstyle @fstyle end |
#italic ⇒ Object
Returns the value of attribute italic.
7 8 9 |
# File 'lib/sks/paragraph/penomoran.rb', line 7 def italic @italic end |
#konten ⇒ Object
Returns the value of attribute konten.
6 7 8 |
# File 'lib/sks/paragraph/penomoran.rb', line 6 def konten @konten end |
#masuk ⇒ Object
Returns the value of attribute masuk.
6 7 8 |
# File 'lib/sks/paragraph/penomoran.rb', line 6 def masuk @masuk end |
#mode ⇒ Object
Returns the value of attribute mode.
8 9 10 |
# File 'lib/sks/paragraph/penomoran.rb', line 8 def mode @mode end |
#numid ⇒ Object (readonly)
Returns the value of attribute numid.
10 11 12 |
# File 'lib/sks/paragraph/penomoran.rb', line 10 def numid @numid end |
#spacing ⇒ Object
Returns the value of attribute spacing.
7 8 9 |
# File 'lib/sks/paragraph/penomoran.rb', line 7 def spacing @spacing end |
#underline ⇒ Object
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 |