spec/lol_spec.rb in moosex-0.0.17 vs spec/lol_spec.rb in moosex-0.0.18
- old
+ new
@@ -11,9 +11,10 @@
has c: { # alternative syntax to be
is: :ro, # more similar to Moo/Moose
default: 1,
predicate: :can_haz_c?, # custom predicate
clearer: "desintegrate_c", # force coerce to symbol
+ xxx: 1,
}
has [:d, :e] => {
is: "ro", # can coerce from strings
default: 2,