Flowdock
method

dump_attributes

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: XSD::CodeGen::ClassDef
dump_attributes() private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xsd/codegen/classdef.rb, line 106
  def dump_attributes
    str = ""
    @attrdef.each do |attrname, writable, varname|
      varname ||= attrname
      if attrname == varname
        str << format(dump_accessor(attrname, writable), 2)
      end
    end
    @attrdef.each do |attrname, writable, varname|
      varname ||= attrname
      if attrname != varname
        str << "\n" unless str.empty?
        str << format(dump_attribute(attrname, writable, varname), 2)
      end
    end
    str
  end
Register or log in to add new notes.