Skip to content

Instantly share code, notes, and snippets.

View heatwaze's full-sized avatar
🏠
Working from home

Darshan Diwani heatwaze

🏠
Working from home
View GitHub Profile
@heatwaze
heatwaze / gist:572fac2382d4ec887453
Created January 25, 2016 08:59
To-Do list Final Ruby Project - Codecademy.com
class List
def initialize()
$directory_name = "lists"
Dir.mkdir($directory_name) unless File.exists?($directory_name)
Dir.chdir("\lists")
end
def createlist()
puts "Enter List name :"
$lname=gets.chomp
$name=$lname