Class: Xampl::XamplLiteralRubyObject
- Inherits:
-
Object
- Object
- Xampl::XamplLiteralRubyObject
- Defined in:
- lib/xamplr/xampl-module.rb
Instance Method Summary collapse
-
#initialize(thing) ⇒ XamplLiteralRubyObject
constructor
A new instance of XamplLiteralRubyObject.
- #to_xml(out = "") ⇒ Object
Constructor Details
#initialize(thing) ⇒ XamplLiteralRubyObject
Returns a new instance of XamplLiteralRubyObject.
22 23 24 |
# File 'lib/xamplr/xampl-module.rb', line 22 def initialize(thing) @thing = thing end |
Instance Method Details
#to_xml(out = "") ⇒ Object
26 27 28 |
# File 'lib/xamplr/xampl-module.rb', line 26 def to_xml(out="") out << @thing.to_s end |