spec/point_spec.rb in moosex-0.0.16 vs spec/point_spec.rb in moosex-0.0.17
- old
+ new
@@ -112,9 +112,10 @@
class Point3D < Point
has x: {
is: :rw, # Redefine attribute
isa: String, # should be String
default: "5", # default value is "5" (constant)
+ override: true, # mandatory, or it will raise exception
}
has z: {
is: :rw, # read-write (mandatory)
isa: Integer, # should be Integer