I hereby claim:
- I am asadakbar on github.
- I am codetastik (https://keybase.io/codetastik) on keybase.
- I have a public key ASBGGgWviEUKrcLJxbLfuNagNDl37iaSD2yQ4tJS_AQJ8wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class User | |
attr_accessible :nickname | |
end |
class List | |
def initialize(file_path) | |
file_text = File.read(file_path) | |
parse_tasks(file_text) | |
end | |
def parse_tasks(text) | |
@tasks = [] | |
text.split("\n").each do |line| | |
@tasks << Task.new(line.split[1..-1].join(' ')) |