Mixin for classes that wish to have object aliases but do not really need to inherit from the ObjectAliases class.
Recursively dumps all of the aliases registered with a class that is kind_of? ObjectAliases.
# File lib/rex/post/meterpreter/object_aliases.rb, line 32 def dump_alias_tree(parent_path, current = nil) items = [] if (current == nil) current = self end # If the current object may have object aliases... if (current.kind_of?(Rex::Post::Meterpreter::ObjectAliases)) current.aliases.each_key { |x| current_path = parent_path + '.' + x items << current_path items.concat(dump_alias_tree(current_path, current.aliases[x])) } end return items end
Generated with the Darkfish Rdoc Generator 2.