lib/rabbit/element/base.rb in rabbit-1.0.4 vs lib/rabbit/element/base.rb in rabbit-1.0.5

- old
+ new

@@ -85,10 +85,14 @@ def have_wait_tag? false end def compile(canvas, x, y, w, h) + compile_element(canvas, x, y, w, h) + end + + def compile_element(canvas, x, y, w, h) @base_x, @base_y, @base_w, @base_h = x, y, w, h @px, @py, @pw, @ph = @x, @y, @w, @h x, y, w, h = setup_margin(x, y, w, h) @canvas, @x, @y, @w, @h = canvas, x, y, w, h if [@px, @py, @pw, @ph] != [@x, @y, @w, @h] @@ -318,14 +322,13 @@ @centering_adjusted_height || 0 end def inspect(verbose=false) if verbose - self_info = super() + super() else - self_info = "<#{self.class.name}>" + "<#{self.class.name}>" end - self_info end def clone obj = super obj.user_property = @user_property.clone