-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrack.rb
More file actions
executable file
·56 lines (51 loc) · 1.11 KB
/
track.rb
File metadata and controls
executable file
·56 lines (51 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env ruby
require 'rubygems'
require 'date'
require 'yaml'
class FirstDay
end
@tasks = []
class Task
attr_accessor :text
attr_accessor :entered_date
def initialize stuff
@text = stuff
end
end
class BuildTask < Task
end
class GarbageTask < Task
end
class MoveTask < Task
end
class DemolishTask < Task
end
class GardenTask < Task
end
class RecreationTask < Task
end
@tasks << BuildTask.new("measure, order granite countertop")
gtask = GarbageTask.new("get rid of garbage outside")
class << gtask
def phone
'garbage person'
end
end
@tasks << gtask
@tasks << MoveTask.new("move hardware and useful woed on deck to shed")
@tasks << DemolishTask.new("dispose of garbage on deck dismantle dec k in preparation for loki extrension")
@tasks << GardenTask.new("weed mikan field")
@tasks << RecreationTask.new("go to the beach")
@tasks.each{|x|x.entered_date=Date.today}
@tasks.each{|x|puts x.text}
class DisplayTasks
end
class PMJ
end
@tasks.each{|x|
if x.respond_to? :phone
puts "PHONE CALL | #{x.class.name} |#{x.phone}"
end
}
secret = YAML::load( File.open(File.expand_path '~/money/secret.yml' ) )
p secret