ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

ruby snippets

draft
Date: 2013-08-25
Tags: programming notes
# A ruby snipped to save the contents of something to a file.
File.open("path/to/filename", "w") do |file|
  file << ruby_variable_to_write.with_a_method
end

By Ryan Wold · © 2013–2026 Ryan Wold

Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.

Tip: $afomi on HandCash · afomi@handcash.io