Class: SistemKebut::PembangunXML
- Inherits:
-
Object
- Object
- SistemKebut::PembangunXML
- Defined in:
- lib/xml/dasar.rb
Direct Known Subclasses
Media::XMLBuilder, SistemKebut::Paragraph::XMLBuilder, Section::XMLBuilder
Instance Attribute Summary collapse
-
#sumber ⇒ Object
readonly
Returns the value of attribute sumber.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build(s) ⇒ Object
-
#initialize(obj) ⇒ PembangunXML
constructor
A new instance of PembangunXML.
- #start ⇒ Object
Constructor Details
#initialize(obj) ⇒ PembangunXML
Returns a new instance of PembangunXML.
4 5 6 |
# File 'lib/xml/dasar.rb', line 4 def initialize(obj) @xml = obj end |
Instance Attribute Details
#sumber ⇒ Object (readonly)
Returns the value of attribute sumber.
3 4 5 |
# File 'lib/xml/dasar.rb', line 3 def sumber @sumber end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/xml/dasar.rb', line 3 def xml @xml end |
Instance Method Details
#build(s) ⇒ Object
8 9 10 11 |
# File 'lib/xml/dasar.rb', line 8 def build(s) @sumber = s return self end |
#start ⇒ Object
13 14 15 |
# File 'lib/xml/dasar.rb', line 13 def start raise 'No start here.' end |