examples/rgb_2.rb in u-struct-1.0.0 vs examples/rgb_2.rb in u-struct-1.1.0

- old
+ new

@@ -17,11 +17,11 @@ def initialize(value) super(Input[value]) end def to_s - '%02x' % value + format('%02x', value) end def inspect "#<RGBNumber #{value}>" end @@ -68,8 +68,8 @@ puts rgb.inspect puts begin RGBColor.new(r: 1, g: -1, b: 255) -rescue => exception +rescue Kind::Error => exception puts exception # Kind::Error (-1 expected to be a kind of Integer(>= 0 and <= 255)) end