lib/ice/cubeable.rb in ice-0.3.0 vs lib/ice/cubeable.rb in ice-0.4.0

- old
+ new

@@ -1,17 +1,17 @@ module Ice - module Cubeable - def get_cube_class(class_obj) - begin - cube_string = class_obj.to_s + "Cube" - cube_string.constantize - rescue - get_cube_class class_obj.superclass - end + module Cubeable + def get_cube_class(class_obj) + begin + cube_string = class_obj.to_s + "Cube" + cube_string.constantize + rescue + get_cube_class class_obj.superclass end + end - def to_ice - cube_class = get_cube_class self.class - cube_class.new self - end + def to_ice + cube_class = get_cube_class self.class + cube_class.new self end + end end