Class: Xampl::XamplLiteralRubyObject

Inherits:
Object
  • Object
show all
Defined in:
lib/xamplr/xampl-module.rb

Instance Method Summary collapse

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