Skibideebop 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/skibideebop.rb +13 -4
  2. metadata +3 -3
data/lib/skibideebop.rb CHANGED
@@ -1,8 +1,16 @@
1
- $coool = String.new
1
+ $coool = Array.new
2
2
 
3
3
  class Object
4
- def method_missing( thing , *args )
5
- $coool.insert( 0 , thing.to_s ) if %w[bodiddly dat dwee zibbidee].include?( thing.to_s )
4
+ def method_missing( meth , *args )
5
+ if %w[bodiddly dat dwee zibbidee].include? meth.to_s
6
+ if args.empty?
7
+ $coool << meth.to_s
8
+ else
9
+ $coool.last.insert( 0 , meth.to_s )
10
+ end
11
+ else
12
+ super
13
+ end
6
14
  end
7
15
  end
8
16
 
@@ -12,7 +20,8 @@ def sing_it_daddyo!( code )
12
20
  end
13
21
 
14
22
  END {
23
+ $coool = $coool.join
15
24
  scat_to_binary_dictionary = Hash[ /bodiddly/ => "00" , /dat/ => "01" , /dwee/ => "10" , /zibbidee/ => "11" ]
16
25
  scat_to_binary_dictionary.each_pair { |scat , binary| $coool.gsub!( scat, binary ) }
17
26
  eval $coool.gsub(/......../).to_a.map {|x| x.to_i(2) }.map{ |x| x.chr}.join
18
- }
27
+ }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Baker
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-31 00:00:00 -05:00
17
+ date: 2011-01-01 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20