Sha256: e82396ef95271db78ca24d489b9f7ccc5a603bf471c4dbab1a130717d5255be2
Contents?: true
Size: 587 Bytes
Versions: 36
Compression:
Stored size: 587 Bytes
Contents
require "xamplr/persister" module Xampl @@xampl_extends_symbols = false def Xampl.xampl_extends_symbols @@xampl_extends_symbols end def Xampl.xampl_extends_symbols=(v) @@xampl_extends_symbols = v if @@xampl_extends_symbols then Symbol.module_eval("include XamplExtensionsToRubyObjects") end end class XamplLiteralRubyObject def initialize(thing) @thing = thing end def to_xml(out="") out << @thing.to_s end end module XamplExtensionsToRubyObjects def to_xml(out="") out << self.to_s end end end
Version data entries
36 entries across 36 versions & 2 rubygems