class Manacle::ExampleList

Attributes

examples[R]

Public Class Methods

new() click to toggle source
# File lib/manacle/formatter.rb, line 64
def initialize
  @examples = []
end

Public Instance Methods

add(example, last_response) click to toggle source
# File lib/manacle/formatter.rb, line 68
def add(example, last_response)
  @examples << Example.new(example, last_response)
end
pretty_xml(xml) click to toggle source
# File lib/manacle/formatter.rb, line 72
def pretty_xml(xml)
 Nokogiri::XML(xml,&:noblanks).to_xml unless xml.nil?
end
render() click to toggle source
# File lib/manacle/formatter.rb, line 76
def render
  erb = ERB.new(File.read(File.expand_path('report.erb',__dir__)))
  erb.result(binding)
end