class RubyMemcheck::Suppression

Attributes

root[R]

Public Class Methods

new(configuration, suppression_node) click to toggle source
# File lib/ruby_memcheck/suppression.rb, line 7
def initialize(configuration, suppression_node)
  @root = suppression_node
end

Public Instance Methods

to_s() click to toggle source
# File lib/ruby_memcheck/suppression.rb, line 11
def to_s
  str = StringIO.new
  str << "{\n"
  str << "  #{root.at_xpath("sname").content}\n"
  str << "  #{root.at_xpath("skind").content}\n"
  root.xpath("./sframe/fun | ./sframe/obj").each do |frame|
    str << "  #{frame.name}:#{frame.content}\n"
  end
  str << "}\n"
  str.string
end