Difference between revisions of "Ruby"

From Ever changing code
Jump to navigation Jump to search
(Created page with "Ruby adventures... = Install == sudo apt-get install ruby ruby-dev = Basic file structure = <source lang=ruby> #!/usr/bin/env ruby # require 'yaml' require 'fileutils' File...")
(No difference)

Revision as of 21:28, 27 February 2019

Ruby adventures...

Install =

sudo apt-get install ruby ruby-dev

Basic file structure

#!/usr/bin/env ruby

# require 'yaml'
require 'fileutils'
FileUtils.touch('file.txt.OK')