method
marshal_dump
v1_9_3_125 -
Show latest stable
- Class:
RDoc::ClassModule
marshal_dump()public
TODO: filter included items by #display?
# File lib/rdoc/class_module.rb, line 228
def marshal_dump # :nodoc:
attrs = attributes.sort.map do |attr|
[ attr.name, attr.rw,
attr.visibility, attr.singleton, attr.file_name,
]
end
method_types = methods_by_type.map do |type, visibilities|
visibilities = visibilities.map do |visibility, methods|
method_names = methods.map do |method|
[method.name, method.file_name]
end
[visibility, method_names.uniq]
end
[type, visibilities]
end
[ MARSHAL_VERSION,
@name,
full_name,
@superclass,
parse(@comment_location),
attrs,
constants.map do |const|
[const.name, parse(const.comment), const.file_name]
end,
includes.map do |incl|
[incl.name, parse(incl.comment), incl.file_name]
end,
method_types,
]
end Related methods
- Instance methods
- add_comment
- ancestors
- clear_comment
- comment=
- complete
- each_ancestor
- find_ancestor_local_symbol
- find_class_named
- full_name
- marshal_dump
- marshal_load
- merge
- merge_collections
- module?
- name=
- name_for_path
- non_aliases
- parse
- path
- remove_nodoc_children
- superclass
- superclass=
- to_s
- type
- update_aliases
- update_includes
- Class methods
- from_module
- new