Flowdock
method

dump_methods

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: XSD::CodeGen::ModuleDef
dump_methods() private

No documentation

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

Hide source
# File lib/xsd/codegen/moduledef.rb, line 121
  def dump_methods
    methods = {}
    @methoddef.each do |visibility, method|
      (methods[visibility] ||= []) << method
    end
    str = ""
    [:public, :protected, :private].each do |visibility|
      if methods[visibility]
        str << "\n" unless str.empty?
        str << visibility.to_s << "\n\n" unless visibility == :public
        str << methods[visibility].collect { |m| format(m.dump, 2) }.join("\n")
      end
    end
    str
  end
Register or log in to add new notes.