Class: Hash
- Defined in:
- lib/rmxp_extractor/ron.rb,
lib/rmxp_extractor/classnames.rb
Instance Method Summary collapse
Instance Method Details
#rmxp_serialize ⇒ Object
65 66 67 68 69 70 71 72 |
# File 'lib/rmxp_extractor/ron.rb', line 65 def rmxp_serialize str = "{\n" $indent += 2 self.sort.each { |key, value| str += "#{" " * $indent}#{key.rmxp_serialize}: #{value.rmxp_serialize},\n" } $indent -= 2 str += "#{" " * $indent}}" str end |