Module: Toychest
- Defined in:
- lib/toychest.rb,
lib/toychest/version.rb
Defined Under Namespace
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
-
.[](k) ⇒ Object
id profile.
-
.duck ⇒ Object
duck duck go.
-
.each(&b) ⇒ Object
each id.
-
.lotto ⇒ Object
community lotto.
-
.nasa ⇒ Object
space refernces.
- .now ⇒ Object
-
.on ⇒ Object
system events.
-
.sky ⇒ Object
sun and moon timings.
- .tarot ⇒ Object
Class Method Details
.[](k) ⇒ Object
id profile
101 102 103 |
# File 'lib/toychest.rb', line 101 def self.[] k @@C[k] 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 |
.nasa ⇒ Object
space refernces
119 120 121 |
# File 'lib/toychest.rb', line 119 def self.nasa NASA end |
.on ⇒ Object
system events
41 42 43 |
# File 'lib/toychest.rb', line 41 def self.on @@ON end |
.sky ⇒ Object
sun and moon timings.
111 112 113 |
# File 'lib/toychest.rb', line 111 def self.sky SKY end |
.tarot ⇒ Object
128 129 130 |
# File 'lib/toychest.rb', line 128 def self.tarot TAROT end |