Class: Array

Inherits:
Object show all
Defined in:
lib/rmxp_extractor/ron.rb,
lib/rmxp_extractor/classnames.rb

Instance Method Summary collapse

Instance Method Details

#rmxp_serializeObject



89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/rmxp_extractor/ron.rb', line 89

def rmxp_serialize
  unless self.empty?
    str = "[\n"
    $indent += 2
    self.each { |e| next unless e; str += "#{"  " * $indent}#{e.rmxp_serialize},\n" }
    $indent -= 2
    str += "#{"  " * $indent}]"
  else
    str = "[]"
  end
  str
end