Skip to content

Instantly share code, notes, and snippets.

Keybase proof

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:

class User
attr_accessible :nickname
end
@asadakbar
asadakbar / gist:2991892
Created June 25, 2012 22:36
Booster with Robert - Monday June 25th
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(' '))