Module: Toychest

Defined in:
lib/toychest.rb,
lib/toychest/version.rb

Defined Under Namespace

Classes: C, Error

Constant Summary collapse

VERSION =
"0.1.3"
@@ON =
{ default: lambda { |p, k, h={}| puts %[Toychest #{p} #{k} #{h}] } }
@@C =
Hash.new { |h,k| h[k] = C.new(k) }

Class Method Summary collapse

Class Method Details

.[](k) ⇒ Object

id profile



101
102
103
# File 'lib/toychest.rb', line 101

def self.[] k
  @@C[k]
end

.duckObject

duck duck go



124
125
126
# File 'lib/toychest.rb', line 124

def self.duck
  DUCK
end

.each(&b) ⇒ Object

each id



106
107
108
# File 'lib/toychest.rb', line 106

def self.each &b
  @@C.each_pair { |k,v| b.call(k,v) }
end

.lottoObject

community lotto



96
97
98
# File 'lib/toychest.rb', line 96

def self.lotto
  LOTTO
end

.nasaObject

space refernces



119
120
121
# File 'lib/toychest.rb', line 119

def self.nasa
  NASA
end

.nowObject



114
115
116
# File 'lib/toychest.rb', line 114

def self.now
  SKY.now
end

.onObject

system events



41
42
43
# File 'lib/toychest.rb', line 41

def self.on
  @@ON
end

.skyObject

sun and moon timings.



111
112
113
# File 'lib/toychest.rb', line 111

def self.sky
  SKY
end

.tarotObject



128
129
130
# File 'lib/toychest.rb', line 128

def self.tarot
  TAROT
end