Skip to content
Browse files

Files clean up

  • Loading branch information...
1 parent 241b58b commit 8f6812e6d67f6b1ebb2f973cb30ad8b80d387c32 @krakatoa krakatoa committed Feb 19, 2013
Showing with 1 addition and 42 deletions.
  1. +1 −1 examples/boot.rb
  2. +0 −41 test.rb
View
2 examples/boot.rb
@@ -3,7 +3,7 @@
class Core
def state(i=1)
- i = i.to_i
+ i = i.to_f
puts "--ack--"
sleep(i)
puts "Hola! #{i}"
View
41 test.rb
@@ -1,41 +0,0 @@
-require './lib/object'
-require './lib/objects_hub'
-
-class Bla
- def initialize(test)
- @test = test
- end
-
- def test
- @test
- end
-end
-
-class Blo
- def initialize(test)
- @test = test
- end
-
- def test
- @test
- end
-end
-
-# We need to add an initializer method for the Cucub-VM,
-# so that each class defined in the protocol will be taked into account for Cucub messages
-# after including (read it as: ".send :include") Cucub::Object behavior.
-["engine", "bla"].each {|class_name|
- begin
- const = Kernel.const_get(class_name.capitalize)
- const.send :include, Cucub::Object
- rescue NameError
- end
-}
-
-puts "ObjectsHub instances: #{Cucub::ObjectsHub.instance.objects.inspect}"
-
-b = Bla.new("123")
-c = Bla.new("123")
-puts "ObjectsHub instances: #{Cucub::ObjectsHub.instance.objects.inspect}"
-puts "b.uuid: #{b.uuid}"
-puts "c.uuid: #{c.uuid}"

0 comments on commit 8f6812e

Please sign in to comment.
Something went wrong with that request. Please try again.