Parent

Methods

String

just some hack here to allow current examples' syntax: table_data.to_xml.write(open('result.xml', 'w'), 1)

Public Instance Methods

write(stringio, add_indent=0) click to toggle source
# File lib/scrubyt/utils/ruby_extensions.rb, line 65
def write(stringio, add_indent=0)
  stringio.write((self.split("\n").collect { |line| ('  ' * add_indent) + line }).join("\n"))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.